Light falloff calculations

Post » Wed Mar 18, 2015 10:06 am

Hi,

I have been trying to figure out the exact specification of the equation seems its something like this: brightness (x) = (ax^2+bx+c)^-1, where x is the distance from light-source, have understood what a, b, c are but there seem to be certain constraints under which brightness is calculated for ex: setting all a, b, c to 0 should have resulted in a launch/render error, but it didn't. Should be great if I could get the code to figure out how exactly it has been implemented.

Also, in this connection, would request what the following parameters do:

LinearRadiusMult

QuadraticRadiusMult

LinearMethod

QuadraticMethod

And as a side question would also like to know the unit of "x", my guess is it might be a x/x(max) kind of scale but am just guessing.

Many thanks.

K_M

User avatar
Gemma Woods Illustration
 
Posts: 3356
Joined: Sun Jun 18, 2006 8:48 pm

Return to III - Morrowind