limitations?
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...
http://www.geocities.com/cippyboy_7/lightmap.jpg
If you`re using glColor3f() that might be the problem...
Relative Games - My apps
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...
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_...
Take a look at other glEnable-enums. They''re always uppercase, begin with GL_...
How do I set my laser printer on stun?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement