PDA

View Full Version : Rotating Problem



amstel
03-15-2002, 07:10 PM
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
glBengin(GL_QUADS);
glVertex3d(x1,y1,z1);
...
glVertex3d(x4,y4,z4);
glEnd();

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.

immy
03-16-2002, 02:45 AM
hi
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.
Bye

amstel
03-16-2002, 08:00 AM
Ok, I can do it the right way, I placed glFrontFace(GL_CCW) into my drawing routine. Thanks so much for your reccomend.

amstel,

immy
03-16-2002, 08:24 AM
hi
I did not understand what u said. I wanna know your problem is sloved or not ?

amstel
03-16-2002, 07:26 PM
Hi, Immy

My problem have already revised.

regard,
Amstel