Last drawn is on top

Started by
2 comments, last by Decrius 16 years, 1 month ago
Pretty straightforward, but I've seen examples that didn't have it: I draw a box with on eachside a texture, I rotate it and then it happens: the last drawn face is always shown ontop of faces that are closer to the camera. How to prevent this? Thanks.
[size="2"]SignatureShuffle: [size="2"]Random signature images on fora
Advertisement
Enable backface culling and maybe also the depth test.
You have to enable Z buffering ( depth test ), i think the command is gl_Enable(GL_DEPTH_TEST)
Ah thanks :), the BF culling did it (as I had depth_test already enabled ;)) thanks ;)
[size="2"]SignatureShuffle: [size="2"]Random signature images on fora

This topic is closed to new replies.

Advertisement