VRCCameraSettings FOV wrong for Photo Camera.
tracked
Thad Gyther
It seems that the FOV obtained for the photo camera in the VRCCameraSettings is too big (it should be roughly 0.77 times the value provided).
To reproduce the bug, make a simple script that copies the position, rotation and fov of the photo camera onto another camera that renders on a 16:9 render target. The pictures will not be the same on the render target and on the photo camera.
Log In
Thad Gyther
To also add a use-case why a fix would have some importance to me:
I made a few custom mirrors with some unique effects. Unfortunately, with the wrong FOV, I can't get the mirror image to align correctly on the photo camera. There are also a few other things like portals that would suffer from the same issue.
Jabberrocky
Can confirm that VRCCameraSettings.PhotoCamera.FieldOfView is off by approximately 0.795f.
StormRel
marked this post as
tracked
Thad Gyther
It seems more than just the FOV is wrong. The resolution is also always 1280x720. Changing the resolution of the camera doesn't even trigger change events.
Thad Gyther
With the new GetCurrentCamera method in Udon, I can get the expected resolution when I react to OnWillRenderObject. I can see that the resolution changes only when taking an actual photo. I guess I'm ok with that behaviour. It remains debateable though, if taking a photo should then also trigger an OnVRCCameraSettingsChanged event before and after. And FOV is still wrong in any case...