|
I'm having problems with glEnable(GL_DEPTH_TEST);, and I'm ashamed of it. |
Albin Engström
Member #8,110
December 2006
|
If you made an application that would display a model, but it turns out that the depth testing is off and the model looks kinda funny: But then you enable it and all the vertices's disappear and you'll sit there totally confused... If you have experienced this or know of it please share the different scenarios in which this can happen. Just by adding this: glEnable(GL_DEPTH_TEST); Everything goes blank :S. I've done this like a hundred times but I've always used allegroGL so I guess I've missed out on something important one must do for the depth testing. I've looked at nehe's tutorials to but i see nothing special there. Thanks for not telling me to use AllegroGL. |
Thomas Fjellstrom
Member #476
June 2000
|
Have you remembered to clear the depth buffer at all ever? -- |
X-G
Member #856
December 2000
|
Are you remembering to clear the depth buffer? While you're at it, enable backface culling. EDIT: Dang it! -- |
Albin Engström
Member #8,110
December 2006
|
Wow! you guys are quick and precise! . Bullseye, I had forgotten to clear the depth buffer ><. I learn by mistakes.. . Thanks! |
Vanneto
Member #8,643
May 2007
|
X-G said: EDIT: Dang it! Twice in a row, huh? Well, at least now, you answered in the same minute. In capitalist America bank robs you. |
|