Hi
Is there a way of setting different drawing colors for the front and back sides of entities such as polygons and NURBS surfaces?

Thanx

CB

drumminj

04-19-2000, 06:17 AM

I know there is if you have lighting turned on. When you use glMaterial*(), the first parameter can be GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. If you are not using GL lighting(just glColor*()), then I am not sure. You could also render your polygon mesh twice, the second time negating the normals(so that their fronts are facing the other direction), and just give the second mesh a different color than the first. Unfortunately I don't know anything about OGL and NURBS, so I can't help you there