How to avoid z-fighting?
Posted: Fri May 14, 2010 5:45 pm
Hi everyone. I'm creating a planet-generator, in the following way:
I put all the data in a two-dimensional array into the Z component of each vertex of a cube-mesh. This works pretty fine for creating mountains.
I create the sea by spawning a big flat mesh at Z=0.
When the camera moves, the intesection between the sea-mesh and the earth-mesh wobbles in a strange and annoying way. How can i aviod this?
Hope this is clear. I can't send you an editable file at the moment. I already tried checking and uncheckng "draw back face" and similar in the material options, but the prolem persists.
Thanks in advance!
I put all the data in a two-dimensional array into the Z component of each vertex of a cube-mesh. This works pretty fine for creating mountains.
I create the sea by spawning a big flat mesh at Z=0.
When the camera moves, the intesection between the sea-mesh and the earth-mesh wobbles in a strange and annoying way. How can i aviod this?
Hope this is clear. I can't send you an editable file at the moment. I already tried checking and uncheckng "draw back face" and similar in the material options, but the prolem persists.
Thanks in advance!