PDA

View Full Version : Plane Determination



humberto
11-06-2000, 02:13 PM
Hi,

I am trying to draw a 3D Polygon here but when I am rotating the Object more than 180 degrees something goes wrong with the polygon ... To fix that problem I tried to use plane determination technique as in the line below:
(when i am setting up the rendering context)
glFrontFace(GL_CW);
(before drawing the polygon)
glEnable(GL_DEPTH_TEST);

Even with these above its not working ....

what's going on ??
Does anybody has very simple example teaching how can I make it ??

11-06-2000, 09:42 PM
What goes wrong?

If the polygon disappares then it could be that you've enabled culling or something.

NewROmancer
11-06-2000, 10:11 PM
Maybe when you rotate the polygon you get over the near of the far clipping plane. Check them and the coordinates of the polygon.

NewROmancer

Gavin
11-07-2000, 12:54 AM
Try drawing front and back face, and yes check your clipping plane in the near and far

gav