Skip to main content
Participant
July 20, 2018

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

    9 replies

    cdytobyAuthor
    Participant
    July 24, 2018
    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?
    cdytobyAuthor
    Participant
    July 26, 2018
    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.
    cdytobyAuthor
    Participant
    August 7, 2018
    @imperativity 

    Is there any update on this?
    cdytobyAuthor
    Participant
    August 9, 2018
    @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?
    New Participant
    August 13, 2018
    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.
    cdytobyAuthor
    Participant
    August 17, 2018
    @imperativity

    Understood. I'll wait for an update then.
    Up and Coming
    September 6, 2018
    @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?
    Up and Coming
    September 6, 2018
    Never mind - turns out I had some strange issues upgrading the OVRPlugin portion of the 1.28 unitypackage. Scene recentering works!
    September 7, 2018
    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 ;)