[PyOpenGL-Users] glNormal3f not working for me
Brought to you by:
mcfletch
From: McTaggart, K. <Kev...@dr...> - 2006-11-06 14:33:49
|
When drawing a square, a call to glNormal3f doesn't appear to affect how the square is drawn. I'm trying to get a coloured front and dark back by using the following: glColorMaterial(GL_FRONT_AND_BACK, GL_EMISSION) glPolygonMode(GL_FRONT, GL_FILL) glPolygonMode(GL_BACK, GL_LINE) glColor3f(0.0, 1.0, 0.0)=09 glBegin(GL_POLYGON) glNormal3f(0.0, -1.0, 0.0) # Doesn't appear to have any influence glVertex3f(1.0, -1.0, -1.0) =20 glVertex3f(1.0, -1.0, 1.0) =20 glVertex3f(-1.0, -1.0, 1.0) =20 glVertex3f(-1.0, -1.0, -1.0) =20 glEnd() =20 It appears that calling glNormal3f has no influence on which is the front or back, and that I have to rearrange the order in which vertices are called (clockwise versus counter-clockwise). Any hints on how to get glNormal3f to influence which is front and back? =20 |