Advertisement

limitations?

Started by July 12, 2003 02:50 PM
5 comments, last by TheProx 21 years, 7 months ago
I made a "world" with colors mixed in with the textures, but when i added lighting, the colors disappeared ... is this supposed to happen? or am i initializing everything wrong? I can post my code if u need it.
NARF - Pinky and the Brain
Here`s a pic that has a Color Array ->which i used for vertex lighting and also has lighting on , actually there`s nothing stopping them,though I think the actual lighting ain`t there...just my custom one...I huess :

http://www.geocities.com/cippyboy_7/lightmap.jpg

If you`re using glColor3f() that might be the problem...

Relative Games - My apps

Advertisement
glColor3f -> glColor4f doesn''t fix the problem...
NARF - Pinky and the Brain
quote:

I made a "world" with colors mixed in with the textures, but when i added lighting, the colors disappeared ... is this supposed to happen?


Yes, lighting overrides manual colour definitions. Enable the colour material to change that behaviour (glColorMaterial).


[edited by - Yann L on July 12, 2003 4:40:36 PM]
how do I enable that?

glEnable (glColorMaterial);

doesnt work...
NARF - Pinky and the Brain
glEnable(GL_COLOR_MATERIAL);

Take a look at other glEnable-enums. They''re always uppercase, begin with GL_...
How do I set my laser printer on stun?
Advertisement
I shoulda guessed that lol
but thanks alot!
NARF - Pinky and the Brain

This topic is closed to new replies.

Advertisement