Jump to content
  • Advertisement

Archived

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

Aeotaph

Lighting

This topic is 5527 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!