Rotating Problem

I have a simple object of solid cube.Once I rotated it in any angle,then some face disappear.

I created my solid cube by this way,

//Left face


and similar code on other face

What the remedy I should to do?
Please note that , I don’t want to use the glut and gluax library.

Hi, let me see if I can answer your question. OpenGL assumes counterclockwise wound polygons are front facing. If you specified the vertices for the faces on your cube in a clockwise order, then you need to do glFrontFace(GL_CW). This will tell OpenGL that clockwise wound polygons should be front facing. If this doesnt help, please respond and be a bit more specific

Old GLman

[This message has been edited by Old GLman (edited 03-15-2002).]

Thansk a lot,

I placed “glFrontFace(GL_CW)” into drawing routine and it can’t help me. And I try to change one to “glFrontFace(GL_CCw)”, the same result is shown.


I’m sorry,I’m mistake. It can help me so well.

Thanks you so much.