Plane Determination

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 ??

What goes wrong?

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

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

Try drawing front and back face, and yes check your clipping plane in the near and far

gav