Forum Discussion
summitgames
8 years agoHonored Guest
Oculus SDK change camera fov in Unity
Hello to all fellow developers.
My question is specif to to Unity and Oculus SDK which has a fixed FOV when the VR Headset gets connected.
Oculus Documentation Link on Camera FOV and Scale
https://developer.oculus.com/design/latest/concepts/bp_app_fov_scale/
I have tried everything to check if we can change the FOV which gets to 96.17 to camera, if you use camera-rig component or not. any camera inside scene will convert automatically to 96. I want to change the FOV at run time, if not possible i want to use another secondary camera for the task
We have a scene where we are showing car interiors and its looking too bad when FOV is 96. The immersive- feeling of being in a car is gone. We want to control the camera FOV at run time.
The things i have tried so far.
1> changing via code gives error "field of view cannot be changed". and goes back to 96.
2. Secondary camera for that specific activity
3> stereo convergence post render scripts.
Is there any solution to this.
Please do give your inputs.
Best
Sumit Jain
My question is specif to to Unity and Oculus SDK which has a fixed FOV when the VR Headset gets connected.
Oculus Documentation Link on Camera FOV and Scale
https://developer.oculus.com/design/latest/concepts/bp_app_fov_scale/
I have tried everything to check if we can change the FOV which gets to 96.17 to camera, if you use camera-rig component or not. any camera inside scene will convert automatically to 96. I want to change the FOV at run time, if not possible i want to use another secondary camera for the task
We have a scene where we are showing car interiors and its looking too bad when FOV is 96. The immersive- feeling of being in a car is gone. We want to control the camera FOV at run time.
The things i have tried so far.
1> changing via code gives error "field of view cannot be changed". and goes back to 96.
2. Secondary camera for that specific activity
3> stereo convergence post render scripts.
Is there any solution to this.
Please do give your inputs.
Best
Sumit Jain
1 Reply
Replies have been turned off for this discussion
- AEgisTechnologiHonored GuestI've had the same problem with modifying the fov, but for use with a binocular view. However, I noticed in the release notes for 2017.2b2 , that Unity has added a new property XRDevice.fovZoomFactor. I did a quick test of this property and it seems to allow you to change the fov now. It would be nice however if this feature could be back-ported to a more stable version of Unity as I assume it will be a while before 2017.2 will be usable for production.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago
- 26 days ago
- 8 months ago
- 7 months ago