PDA

View Full Version : Terrain texture bug



02-02-2003, 04:01 AM
Im using a heightmap to render a simple terrain using vertex arrays and a display list.
But the texture is weird and when you move the camera the texture moves in strange way and get stretched.
http://w1.853.telia.com/~u85324201/terrain.png http://w1.853.telia.com/~u85324201/TerrainTest.zip

HS
02-02-2003, 04:16 AM
Looks ok with a 24Bit Z-Buffer, but you have some serious Z-Fighting with a 16Bit Z-Buffer.

Try adjusting your near and far clipping plane.

02-02-2003, 04:40 AM
Ok..thanks

I didn't think about the Z buffer, I thought that was caused by the texture or something http://www.opengl.org/discussion_boards/ubb/smile.gif