Skip to main content
Up and Coming
October 17, 2014

IPD refresh issue?

I try to increase / decrease the IPD value in my game settings. I use:
GameObject.GetComponent(OVRCameraController).IPD = ipdFloat;

This works, the value in OVRCameraController get changed in realtime but i see no effect on the camera.
When i "click" a second time on the OVR camera in the game hierarchy (editor), the camera jump to the new IPD position.

Is here a solution to refresh the OVR camera after changing the IPD by java script?
    This topic has been closed for replies.

    7 replies

    Inspiring
    October 17, 2014
    You should not need to be changing the IPD in your app.

    Ideally the user would configure this once in the Config Util and all apps read that value.
    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
    Up and Coming
    October 17, 2014
    Yes, i know. But it would be a nice feature to change fast the IPD value from the app settings with a slider.
    It works only when the OVR camera is selected in the editor.
    Inspiring
    October 17, 2014
    You can try setting "UpdateCamerasDirtyFlag" to true after adjusting the IPD but, again, I recommend you don't do this.
    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
    Up and Coming
    October 18, 2014
    Yes. I try it already. But "UpdateCamerasDirtyFlag" is not public, its private.

    The problem is all developers has different (favorite) IPD values. So a final 3D scenery looks different for many users, and a small IDP difference has a big 3d depth consequence.
    Before oculus rift i use nvidias 3d vision, here you can also increase and decrease the 3d depth in game.
    Inspiring
    October 18, 2014
    You shouldn't be using IPD as a "3D Strength Meter".
    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
    Inspiring
    October 18, 2014
    In any case, I believe you should be able to use:

    public void SetIPD(float ipd)


    In OVRCameraController.
    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
    Up and Coming
    October 18, 2014
    Oh yes. Thats works. Thanks.