Advertisement

Opgl glColorMaterial HELP!

Started by March 22, 2001 07:42 PM
-1 comments, last by Aman 23 years, 8 months ago
Opgl v1.2 VC++ 6.0 Windows not MFC or GLUT ok heres a code snippet out of my glDraw Routine ... glCallList(Object); // Draw The Room glEnable(GL_COLOR_MATERIAL); glColorMaterial(GL_FRONT, GL_EMISSION); glColor3f(1.0f,1.0f,1.0f); glCallList(Object+2); // Draw Light Quad glDisable(GL_COLOR_MATERIAL); ... Ok I expect this code to draw a room with a quad that has a "light" texture which "emits" (is much brighter then other textures). What I get is ALL Quads in BOTH Display lists "emit". What gives? Thanks for you time, .Aman.
Its better to be silent and thought a foolthen to speak and remove all doubt.

This topic is closed to new replies.

Advertisement