Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
lazniak's avatar
lazniak
Honored Guest
12 years ago

Field of view

Hello,
i wrote simple script to zoom camera by modyfing Fild of view.
In editor everything works fine, but after running build on oculus it doesnt work at all. Build with single camera - without OVR camera worsk great.
On oculus field of view is fixed to 90*.
Any body knows how can I fix it?

4 Replies

Replies have been turned off for this discussion
  • You need to use SetVerticalFOV() in OVRCameraController.cs. Adjusting manually will not work.
  • Hi guys!

    I would like to add the zoom ability to a little project I'm working on but have no programming skills. I found this video on youtube but it probably needs some adjusting to work with Rift.
    http://www.youtube.com/watch?v=shYpGnMKY8M
    Would you mind posting the code for zoom? And also exactly what needs to be changed in the OVRCameraController.cs (the lines)?

    Thanks!