Since I've add lights, objects have no colour

Started by
3 comments, last by DreamGhost 18 years, 2 months ago
Hi guys, I'm just after adding a light to my scene. My objects are all white, grey and black, they should be coloured. My lighting colour is white. What could my problem be? Thanks for any help given!
Reject the basic asumption of civialisation especially the importance of material possessions
Advertisement
I assure you don't have textures on your objects right now ?

If you run with lighting=off then the color is taken from the vertex color definition. If you turn on lighting and define a light, then it will ignore vertex colors and use the currently set material instead. This might be a bit confusing.
try glEnable(GL_COLOR_MATERIAL);


Most helpful image ever.
Yeah I had that problem too when I first started using lights, took me a few minutes to realize what was going on and why.

This topic is closed to new replies.

Advertisement