Three.js: Z-Fighting

Created on 17 Oct 2011  路  1Comment  路  Source: mrdoob/three.js

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?

Question

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, but near has much bigger effect due to nonlinearity - most of depth buffer precision is closer to near plane.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings