Lighting

Started by
2 comments, last by Aeotaph 20 years, 8 months ago
Hey people I have a bit of a query about lighting. I''m using a greyscale texture for some objects that I want to be able to subsequently choose and change colours for. That works fine - I can colour the objects and the texture takes on the new colour. However, when I turn on the lighting (using the Delphi basecode from Lesson 8 for now, if that''s relevant) all colour vanishes, and my scene is mysteriously in black and white once more. Any ideas on how I can fix this, or do I need to give more information...? -- Mercy
-- Mercy
Advertisement
You may need to enable GL_COLOR_MATERIAL, i''m not sure tho. Just call glEnable(GL_COLOR_MATERIAL); before drawing your coloured, textured stuff.

Hyperdev

"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
Thanks, that''s fixed the problem

I''d like to credit your help in this project''s readme, is Hyperdev okay to credit you by?

--
Mercy
-- Mercy
lol, you dont have to do that, but yeah Hyperdevs fine

Hyperdev

"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"

This topic is closed to new replies.

Advertisement