PDA

View Full Version : Transparent image



Cucus
05-18-2011, 10:08 AM
Hi,

If you see the attached image, you see that my objects are transparent. However, I put

glPolygonMode(GL_FRONT, GL_FILL);
Is this correct and the mistake is another place?

Thanks

Alfonse Reinheart
05-18-2011, 02:31 PM
What attached image?

Cucus
05-18-2011, 02:41 PM
Sorry, here's the image ><

ZbuffeR
05-18-2011, 02:52 PM
glEnable(GL_DEPTH_TEST); ?
And did your create a GL context with depth buffer ?

Cucus
05-18-2011, 02:57 PM
Thanks! I forget glEnable(GL_DEPTH_TEST);