Jump to content
  • Advertisement
Sign in to follow this  
Logar24

Reflection Equation

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

Hello I am currently trying to reproduce the reflection map model from 3ds max. I have something like : baseColor + Coeff x ReflectionColor I have a bit of a problem with the coeff Value. 3ds Max privide an amount from 0 to 100 for the reflection map. The problem is after some tests the result color does not change in a linear way as i modify the amount. For example if i have a sphere with any texture and a White Reflection (255,255,255) the sphere becomes completly white at approximatly 33%. If anyone has an idea on that, i would be very gratefull.

Share this post


Link to post
Share on other sites
Advertisement
Also note that you will need to divide the coeff by 100 to put it into the 0-1 range. If you select 75 then it will be 0.75, if you select 20 it will be 0.2, and so on.

(1 - (Coeff / 100)) * baseColor + (Coeff / 100) * ReflectionColor

Share this post


Link to post
Share on other sites
Sign in to follow this  

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