transparent faces in 3d model
hi.
i am pretty new to OpenGL, and as a very first project i made a program that rotates a model in space.
The problem is that when i do rotae the object, i have a wired problem, the face disappers, and appers in part over the back face...
int these images, the lines describe the three axis:
red: x
green: y
something like purple ( :) ): z
http://img.photobucket.com/albums/v231/no-uname-available-damnit/snaps-ogl3.jpg
http://img.photobucket.com/albums/v231/no-uname-available-damnit/snaps-ogl2.jpg
http://img.photobucket.com/albums/v231/no-uname-available-damnit/snaps-ogl.jpg
note that the green face should face the y axis
any help on how to solve this, please?
You will have to enable DEPTH_TEST
call
call
glEnable(GL_DEPTH_TEST)
in your initialization code
Try glDisable(STENCIL_TEST) glDisable(ALPHA_TEST) glEnable(DEPTH_TEST)
Also make sure you have a depth buffer initialized
Also make sure you have a depth buffer initialized
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement