PDA

View Full Version : skirt shines through surface. z-fighting?



stephanh
11-13-2004, 09:47 AM
Hi,

i use geomipmapping and skirts for crack fixing. The skirts are stored in a vertexbuffer with the rest of the chunk data and get drawn when the terrain chunk is drawn. The problem is that the skirts shine through the terrain geometry. It looks alot like z fighting. Any idea how to fix that? GL_DEPTH_TEST and z-writes are enabled.

http://www.eisscholle.de/skirtfightsz.jpg

thanks alot!

regards,
stephan

dorbie
11-13-2004, 04:57 PM
The problem is zbuffer precision.

Move the near clip plane out a bit if you can.

If you don't need a skirt don't use one.

If you need the skirt give the skirt the same surface normal as the polygon of the terrain.

You may want to use polygon offset on the skirt if all else fails.