glEnable(GL_DEPTH_TEST)
I''m using glut to handle my window operations but when I enable depth testing nothing appears on the screen. The window is created with the GLUT_RGB|GLUT_DOUBLE|GLUT_DEPTH. I''ve tried to take of depth testing but it doesn''t make a difference. Any help would b e great.
Make sure whatever you''re drawing is in your clip range (set in gluPerspective. Also, make sure your object isn''t being culled by being drawn in the wrong order. You might want to disable backface culling to test this.
Your depthfunc should be GL_LESS or GL_LEQUAL BTW.
____________________________________________________________
www.elf-stone.com
Your depthfunc should be GL_LESS or GL_LEQUAL BTW.
____________________________________________________________
www.elf-stone.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement