Need to manipulate depth buffer in OpenGL.

Started by
4 comments, last by Deadpeople 21 years, 3 months ago
In OpenGL, I need to manipulate the depth buffer, not my geometry, to get certain things to draw as if they had the same depth. But disabling depth testing to draw them is out of the question.
Advertisement
I''m not sure exactly what you''re trying to do. Possibly, glPolygonOffset may give you an easier solution. As a last resort, you can use glReadPixels and glDrawPixels to modify the depth buffer.

Manipulating the Depth Buffer is very hardware unfriendly.

Try everything you can to avoid it.
Manipulating the Depth Buffer is very hardware unfriendly.

Try everything you can to avoid it.


-* So many things to do, so little time to spend. *-
-* So many things to do, so little time to spend. *-
Your question is ambigous, but maybe you want to disable the deepth writting?

Height Map Editor | Eternal lands
sorry i didnt understand the original question!
perhaps explain it a bit more

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

This topic is closed to new replies.

Advertisement