I’m currently working on an openGL library for rendering terrain.
I also have a seperate globe application that is using my library to display terrain on the surface of the earth.
My problem is that if I disable the depth test, then my terrain appears with slight artifacts.
With depth testing enabled my terrain does not show up.
If I first clear the depth buffer, then draw with depth testing enabled that terrain shows up perfectly rendered. However this clobbering of the depth buffer affects the operation of the globe.
I was wondering if there is another way I can get the terrain to render well without using the depth buffer? And also without sorting the polygons…
Is there a quick way I can save and then restore the depth buffer, as to not affect the operation of the globe?
Any help is aprecaited…