terrain & water

Started by
5 comments, last by zix99 18 years ago
Ok, I've been looking for tutorial, articles etc... about creating water, but I didn't find a lot about. I create my terrain width brute force method (HeightMaps) and now I want to add a lake, I created a grid for the lake surface, but the lake's borders don't look very well... Can you give me any advice? [Edited by - Macerlask on April 20, 2006 9:57:56 PM]

twitter: @leonidax

website: www.leonidax.com

Advertisement
i create my water grid with basically a brute force terrain way just obviouslly without the height value.
Can you describe more about the problem with the lake borders, maybe even a screenshot. It might be that the terrain and water use a different grid resolution or be offset from each other and vertices not sharing the same coordinate space - X, and Z, or it might be Z fighting. I have dealt with both of these in the past.

F451
Yea, the problem is Z fighting, now the problem is that I can't find how to switch from a 16 bits buffer to a 24 bits buffer, I'm using GLUT...

twitter: @leonidax

website: www.leonidax.com

Ok here you have some screenshots...

http://macerlask.onesite.com/images/ranchito1.jpg
http://macerlask.onesite.com/images/ranchito2.jpg
http://macerlask.onesite.com/images/ranchito3.jpg

twitter: @leonidax

website: www.leonidax.com

Looks like some Z fighting to me. Your water poly is too close to your land poly and OpenGL has a hard time figuring out which to clip.

This will help.
What does your gluPerspective() values look like (if you use it)?

~zix
---------------------------------------------------Game Programming Resources, Tutorials, and Multimedia | Free Skyboxes

This topic is closed to new replies.

Advertisement