To build a light source with the same angle of view (Hotspot) as the camera FOV

Good day!

Let's say that the scene has a camera - $Camera001 and a light source like Standard Target Spot - $Spot001.Light shape type - rectangle. $Spot001.aspect = renderWidth/renderHeight ($Camera001 aspect) How to calculate the parameter $Spot001.hotspot so that the angle of the cone of light is equal to the angle of the cone of the camera. Copy parameter $Camera001.curFOV, or even changing its type $Camera001.fovType does not give the desired result...???

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

What happen when you match the positions of the Camera and the Light and the positions of the Camera's target and the hotspot's target, and then you use this:

$HotspotLight.hotspot = $Camera.fov

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.