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,
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
PS: Sorry! I have arleady posted this topic in the Beginner section.
I Think you are not specifying your quad vertices in the correct order.By default the polygon vertices must be specifed in the CCW direction with respect to the front face of your polygon(in your case its a QUAD) . May be you are specifying them the wrong way. Let me know if you got my answer correctly.
Hope u the best.
Ok, I can do it the right way, I placed glFrontFace(GL_CCW) into my drawing routine. Thanks so much for your reccomend.
I did not understand what u said. I wanna know your problem is sloved or not ?
My problem have already revised.