Forum Discussion

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

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?

7 Replies

Replies have been turned off for this discussion
  • 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.
  • 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.
  • You can try setting "UpdateCamerasDirtyFlag" to true after adjusting the IPD but, again, I recommend you don't do this.
  • 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.
  • In any case, I believe you should be able to use:

    public void SetIPD(float ipd)


    In OVRCameraController.