I was wondering if anyone runs into z-fighting issues and the best way to handle them. I have polygon flickering occasionally on some large geometric objects I am rendering based on a list of polygons. Think rendering a 3D plot of something like Sin[x y].
I am currently using polygon offset but still have some flickering issues. Any suggestions?
Try moving camera near
plane further. Most of time z-fighting occurs when people set very low near.
Also you can try to move far
plane closer, but near
has much bigger effect due to nonlinearity - most of depth buffer precision is closer to near plane.
Most helpful comment
Try moving camera
near
plane further. Most of time z-fighting occurs when people set very low near.Also you can try to move
far
plane closer, butnear
has much bigger effect due to nonlinearity - most of depth buffer precision is closer to near plane.