PDA

View Full Version : BackFace Culling Swapping



Ozz
09-07-2000, 01:10 PM
Is it possible to switch which side of a polygon is treated as the back face during rendering or can it only be set once?

XBCT
09-07-2000, 02:24 PM
Hi!
Yes itīs possible....Unforunately I forgot how it is called.Look for something like glPolygonWinding or glWinding.

HTH,XBTC!

nikopol0
09-07-2000, 03:25 PM
glFrontFace(GL_CCW) or glFrontFace(GL_CW)
read the red book ...

Ozz
09-08-2000, 08:10 AM
I have almost finished the red book niko and you are wrong, as far as I know they can only be called in an init routine.

DFrey
09-08-2000, 10:26 AM
You can call glFrontFace anytime as long there is a valid rendering context and it is not inbetween glBegin/glEnd.

Ozz
09-08-2000, 01:03 PM
Thanks for the clarification

Blaze
09-08-2000, 11:36 PM
There is also glCullFace(GL_FRONT) and glCullFace(GL_BACK), glFrontFace() determines what is front and back and glCullFace() determines which side should be culled.