Archived

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

Aeotaph

Lighting

Recommended Posts

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