lobstah

07-26-2003, 01:12 PM

Hi,

From what I understand, when vertices of a triangle are supplied, opengl will use the order they are provided in to determine the winding (cw or ccw) of the triangle. How does opengl do this?

The difficulty I'm running into is: I would like to order the vertices of a triangle programmatically in CCW order before passing them to OGL so they won't get culled by OGL. I have triangles that are being culled and leaving triangular holes in my surface.

I've examined past posts and have not come across a similiar problem.

Thanks in advance.

lobstah

From what I understand, when vertices of a triangle are supplied, opengl will use the order they are provided in to determine the winding (cw or ccw) of the triangle. How does opengl do this?

The difficulty I'm running into is: I would like to order the vertices of a triangle programmatically in CCW order before passing them to OGL so they won't get culled by OGL. I have triangles that are being culled and leaving triangular holes in my surface.

I've examined past posts and have not come across a similiar problem.

Thanks in advance.

lobstah