PDA

View Full Version : how to eliminate z-fighting in dense building model



Spaceboy
02-05-2002, 04:49 PM
I create a city model, but the building model are very dense in a region, almost the building models are located together, when flying the 3D model, z-fighting will emerge ? how can i eliminate it, can anyone give me some good advice?
Thanks in advance

iNsaNEiVaN
02-05-2002, 05:04 PM
im not quite sure what you mean, but you might try making the viewing frustrum smaller, thus making the z-buffer more accurate.

Zeno
02-05-2002, 05:45 PM
If you're already requesting a 24 bit depth buffer, pretty much all you can do beyond that is move the near clip plane further out, the far clip plane closer in, or your geometry further apart.

-- Zeno

Julien Cayzac
02-05-2002, 10:59 PM
Originally posted by Spaceboy:
I create a city model, but the building model are very dense in a region, almost the building models are located together, when flying the 3D model, z-fighting will emerge ? how can i eliminate it, can anyone give me some good advice?
Use a BSP. It will give you perfect implicit Z sorting, and you won't need a depth buffer anymore if you render front to back.

Julien.