PDA

View Full Version : Is this normal!?



Rodrix
03-18-2007, 11:45 PM
I turn off lighting and change glColor
and even though I have glDisable(GL_COLOR_MATERIAL) in my loop my objects get colored by glColor...

Thanks so much in advance!
Cheers!
Rod

Bob
03-19-2007, 01:32 AM
Of course it's normal. You change the primary color, so the objects changes color.

Color material is only used to track some material properties to the primary color state when lighting is enabled. The color material feature doesn't affect anything when lighting is disabled.

Rodrix
03-19-2007, 09:31 PM
Thanks! :)

I am also getting this:
I render a billboard that has alpha texture with Lighting off and glAlphaTest and nothing gets rendered. However if I do glEnable(GL_Lighting) everything gets rendered perfectly.

Is this normal too?

Thanks so much in advance!
Cheers!
Rod

Bob
03-20-2007, 02:11 AM
That behaviour depends on so much more than just enabling lighting. Post code and make a more detailed description of the problem.