Archived

This topic is now archived and is closed to further replies.

Aeotaph

Lighting

Recommended Posts

Aeotaph    122
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

Share this post


Link to post
Share on other sites
Lukerd    122
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"

Share this post


Link to post
Share on other sites
Aeotaph    122
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

Share this post


Link to post
Share on other sites