Sign in to follow this  
Logar24

Reflection Equation

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this