Inverse Linear Inverse Square Created 12 years ago2012-08-24 15:41:24 UTC by Bruce Bruce

Created 12 years ago2012-08-24 15:41:24 UTC by Bruce Bruce

Posted 12 years ago2012-08-24 15:41:24 UTC Post #309329
Anybody could explain what these ZHLT flags do in light settings?
Posted 12 years ago2012-08-24 16:03:33 UTC Post #309331
I don't know specifically in mapping, but in lighting terms they refer to falloff.

Inverse linear is exactly what it says on the tin - a linear gradient where the light will fall from full intensity to 0 over a distance or percentage specified.
Inverse Square refers to how light actually behaves in reality, and can be calculated thusly:

Illumination = Luminosity divided by Distance squared.

In plain English: An object twice the distance from the light source will receive only a quarter of the illumination of the source.
User posted image
Archie ArchieGoodbye Moonmen
Posted 12 years ago2012-08-24 16:29:33 UTC Post #309332
Have you did any comparison tests?
Posted 12 years ago2012-08-24 16:34:26 UTC Post #309333
Only in After Effects.
Archie ArchieGoodbye Moonmen
Posted 12 years ago2012-08-24 16:37:38 UTC Post #309334
So I guess we should use Inverse Square everywhere. Is there a RAD command to apply this to all lights, including texture lights?
Posted 12 years ago2012-08-24 16:46:53 UTC Post #309335
No idea, like I said, I've never used it in mapping except to manually calculate falloff in Source's spotlights.
Sorry, dude!
Archie ArchieGoodbye Moonmen
Posted 12 years ago2012-08-24 16:48:37 UTC Post #309336
I see.. I'm a bit confused
Posted 12 years ago2012-08-24 20:46:07 UTC Post #309355
I = K/D^2 with K being a constant. As archie pretty much completely explained, as the distance increases, the light intensity ( or let's just say for mapping's sake the brightness) decreases exponentially.
Instant Mix Instant MixTitle commitment issues
Posted 12 years ago2012-08-24 21:01:32 UTC Post #309357
I wonder why is there an option left for it at all if it's more correct in all cases. Instant, do you use it?

Archie, what you meant by "manually calculate falloff in Source's spotlights"?
Posted 12 years ago2012-08-24 21:08:52 UTC Post #309358
Source spotlights have the following properties that can be used to fine-tune falloff to an utterly anal degree:

Constant
Linear
Quadratic
50% Distance
0% Distance
Hard Falloff
Focus
Archie ArchieGoodbye Moonmen
Posted 12 years ago2012-08-24 21:39:08 UTC Post #309360
And you do it to make a spotlight longer/shorter or what? Wouldn't changing brightness do the same?
You must be logged in to post a response.