Jump to content
  • Advertisement

Archived

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

colors

This topic is 5581 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

Advertisement
What color would you expect it to look? Purple? Just think of an example from the real life - does yellow light shining off a blue car make the car green? AFAIK it does not. In other words - run a Google on colors and color theory. OpenGL, true, is a discrete system bound by discrete boundaries (it can in no instance take into account all of the existing factors that you come across in nature) - hence it has to settle with a lesser form of it - a mathematical formula. These (formulae) are another thing you might study.

Crispy

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
uhh... thats weird. a red object only reflects red light, and a blue light doesnt emit any red light, so the red object should appear to be black...

Share this post


Link to post
Share on other sites
Lighting is additive, unlike paint. If you mix two light sources together, you get a lighter color, not a darker one. At least thats what they always taught us in school.

Share this post


Link to post
Share on other sites
But I don''t have two light sources! :-/

for example, I have a red CUBE hit by blue LIGHT. what I get is a blue cube.
I hope it''s clear now ..

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!