Skip to main content
Participant
February 28, 2014

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?
    This topic has been closed for replies.

    4 replies

    Inspiring
    February 28, 2014
    You need to use SetVerticalFOV() in OVRCameraController.cs. Adjusting manually will not work.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    lazniakAuthor
    Participant
    March 2, 2014
    Thanks, that's exactly what i was looking for.
    New Participant
    May 22, 2014
    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!
    New Participant
    May 22, 2014
    Disregard previous post. Have resolved the issue.