transparent faces in 3d model

Started by
3 comments, last by nucleus 17 years, 12 months ago
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?
Advertisement
You will have to enable DEPTH_TEST
call
glEnable(GL_DEPTH_TEST) 
in your initialization code
allready have that enabled.
and as far as glEnable goes, i had allready tried all options...
Try glDisable(STENCIL_TEST) glDisable(ALPHA_TEST) glEnable(DEPTH_TEST)

Also make sure you have a depth buffer initialized
----------------------------

http://djoubert.co.uk
Thanks alot!
it finally works :)

This topic is closed to new replies.

Advertisement