|
| Light range |
 |
Mon, 12 May 2008 13:35:35 -070 |
Hello.
Is it possible to set the lighting ray distance of a spot light? By default
lights have infinite range, meaning that the light intensity doesnt fall off
with range. Any idea how to overcome that? Is it possible to use reach option
available in Lux?
|
| Post Reply
|
| Re: Light range |
 |
Mon, 12 May 2008 21:52:30 -070 |
Nope, not natively. To simulate lights with falloff you need Buena Depth Cue,
which basically overwrites all 3D shading of AE itself.
|
| Post Reply
|
| Re: Light range |
 |
Tue, 13 May 2008 09:03:09 -070 |
If you are only using the one light, you could also tie the illuminated layers'
material properties to the distance to the light using expressions.
I gave it a quick try and came up with this:
mainLight = thisComp.layer("Light 1");
falloff = effect("Falloff")("Slider")/10000;
lightDistance = Math.max(length(mainLight.toWorld([0,0,0]),
toWorld(anchorPoint))*falloff,
.01);
value/(4*Math.PI*lightDistance*lightDistance)
|
| Post Reply
|
| Re: Light range |
 |
Wed, 21 May 2008 18:12:53 -070 |
Unfortunately i'm using lots of layers and lights, so the Depth Cue would be the
solution for me.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|