-
Expression for 3D rotation to value
I’m trying to adjust the intensity of a flare based on how far away from straight at the camera a light is pointing.
Anyone know an expression to get a value from an x/y/z orientation into a single number?
i.e. A light pointing straight at the camera is at (0,0,0) which give a value of 100 (or whatever), where the same light pointed at (90,90,0) would give a value of 0. Then I can use this to adjust the brightness of a flare based on the lights angle.
Thanks,
Matthew Reithmayr
doulosmedia.com