Front Face vs. Back Face Polygons

Started by
2 comments, last by subflood 19 years ago
A front face quad in OpenGL would be drawn like this: B. left B. Right T. Right T. Left counter-clockwise. What is you want the back face of a polygon facing the viewer? How would you start? Like this: T. Left T. Right B. Right B. Left ? Say I draw a quad with CCW vertices, would calling glFrontFace(GL_CW) reverse the way the polygon faces?
Advertisement
Yes. Calling glFrontFace() can change the way your triangles/quads/polygons face.
That is one way, but there probably is a better way. What is it you are trying to do? I mean what would it be for?


Well, I figured it all out after some trial and error but basically I had a problem with textures positioned the wrong way and I thought that the way I was drawing quads was the problem but in fact it was texture mapping at fault.

This topic is closed to new replies.

Advertisement