I'm stuck for days now at something I thought was a minor problem...
In a scripted plugin I need to match a VRay camera to a max camera as closely as possible (ideally 100% correct), which proves to be a task next to impossible without introducing some arbitrary correction factor, which just does not feel right. Aperture setting in max and film gate in the VRay camera (36mm) are the same, but the same focal length produces different FOVs in both cameras. Not vastly different, but too much to be tolerable in this case.
What would really help is knowing how VRay calculates the FOV from the focal length. The common solution ( fov = 2 * atan(0.5 * film_width / focal_length ) applies to the stadard max cam, but does not seem to apply to the VRay camera. Maybe something more sophisticated is done?
Some help would be really appreciated. I tend to take such things as challenges, but this time I'm really at a loss...
In a scripted plugin I need to match a VRay camera to a max camera as closely as possible (ideally 100% correct), which proves to be a task next to impossible without introducing some arbitrary correction factor, which just does not feel right. Aperture setting in max and film gate in the VRay camera (36mm) are the same, but the same focal length produces different FOVs in both cameras. Not vastly different, but too much to be tolerable in this case.
What would really help is knowing how VRay calculates the FOV from the focal length. The common solution ( fov = 2 * atan(0.5 * film_width / focal_length ) applies to the stadard max cam, but does not seem to apply to the VRay camera. Maybe something more sophisticated is done?
Some help would be really appreciated. I tend to take such things as challenges, but this time I'm really at a loss...
Comment