Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
cdytoby's avatar
cdytoby
Explorer
7 years ago

How to recenter camera view on oculus go?

There is a value in OVRPlugin: OVRPlugin.shouldRecenter, but it only works on oculus rift, not oculus go or gear vr.

I didn't use the OVRManager because I write the whole thing on my own. But can anybody tell me how to recenter the camera when holding the home button?

9 Replies

Replies have been turned off for this discussion
  • OK, my mistake.
    In another project we do have OVRManager, and the issue remains, hold home button for 1 second doesn't recenter the view.
    Is this a bug? or the recenter doesn't work in Oculus Go and GearVR?
  • I'm not allowed to upload our main project, but I just set up a test project in this case. Here is the zip.

    Despite of lacking a controller, when I'm holding my controller's home button for a few seconds, the camera should be able to recenter but it's not recentered. In our other projects' cases, only the controller gets correctly recentered base on the camera position, but the camera doesn't.
  • @imperativity
    I did what you said. The test project file is here.

    The controller is showed, however the camera view is still not reset when I hold the home button. 

    Additionally, there is another problem: when I start this unity app from oculus menu in oculus go, there is a white "screen" flash at the beginning, and then the app goes into either first scene or splash screen. Is this a bug?
  • Just to confirm, I have the same issue here with the Oculus Go. When pressing and holding the Oculus button on the controller, the camera view does not reset, but the controller position does. This is the case with the GearVrControllerTest scene provided with the Oculus Utilities package. Using Unity 2018.2.2f1, on Windows 10.

    However, if I am calling OVRManager.display.recenterPose() directly, everything works fine. Would it be possible to get OVRPlugin.shouldRecenter to work for Android too? I saw that the setting of this value is hard-coded to use DllImport currently. As a temporary work-around, I have set up a key combo on the controller to call this function.
  • @imperativity

    Understood. I'll wait for an update then.
  • @imperativity This isn't working for me for the Go using Unity 5.6.5p4. I tried running the included GearVRControllerTest scene and same thing - controller recenters but the scene does not. "Allow Recenter", "Reorient HMD on Controller Recenter" are both present and set to true. Any ideas?
  • Never mind - turns out I had some strange issues upgrading the OVRPlugin portion of the 1.28 unitypackage. Scene recentering works!
  • Anonymous's avatar
    Anonymous
    I had some trouble updating the OVRUtilities as well. After manually updating the plugin and deleting the old "Oculus/VR/Plugins/1.27.0" folder I still get the update pop up telling me that I should update from 1.27 to 1.28... even so I even deleted the 1.27 folder... I also tried to completely remove the old version from the project and then import the new package, but had the same result. Its only a minor annoyance though and doesn't seem to break anything.

    The recenter option works well, thanks for that ;)