[Closed] wiring FOV and VRay physical camera
Hi
I’m trying to wire the FOV of a standard camera to the FOV of a Vray camera. Unfortunately vray physical cameras don’t have a FOV, but a focal length parameter with mm as it’s unit. I believe though, that it is the parameter i am looking for, and not the film gate or zoom parameter, is that correct, or is it far more complicated?
When i use cameraFOV.FOVtoMM mycamera.FOV , the maxscript listener computes the correct value. Only when i wire the two cameras, the vray focal_length doesn’t get set to a value of e.g. 40mm, but instead to a ridiculous value of 1726. why is that so? It does work as expected when i use a scripted controller, though. So that could be a solution, but i still don’t really understand why wiring did not work…
David
Hi. There is no easy way (see this old thread).
You could still try this, it gives ok results when the camera target isn’t closer than two meters:
When wiring from normal cam FOV to the physical camera focal_length, use this expression:
getRendApertureWidth()/FOV
If you want the phys cam to drive the normal camera, just replace ‘FOV’ with ‘focal_length’.
The idea came from wikipedia.