Sun Gang
11-23-2005, 05:23 PM
Hi,everyone:
In my OpenGL application, I used GL_GREATER option for depth test. When I was processing texture mapping, I turned off the depth test by invoking glDisable(GL_DEPTH_TEST). After finishing
texture mapping, I reopened depth test. Now the problem came, the inner texture could be seen
outside the object, and the back texture was covered in front of the front one if the front
one was mapped earlier than the back one. How can I solve this problem but not to change the
GL_GREATER option for the depth test?
In my OpenGL application, I used GL_GREATER option for depth test. When I was processing texture mapping, I turned off the depth test by invoking glDisable(GL_DEPTH_TEST). After finishing
texture mapping, I reopened depth test. Now the problem came, the inner texture could be seen
outside the object, and the back texture was covered in front of the front one if the front
one was mapped earlier than the back one. How can I solve this problem but not to change the
GL_GREATER option for the depth test?