Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Oculus repositioning. OpenXR

Discussion in 'VR' started by koirat, Jun 13, 2023.

  1. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,004
    When I hold oculus button on oculus controller it should perform repositioning.
    In my OpenXR application when I hold the button it is showing the icon of repositioning.
    But it is not repositioning inside application.

    How can I do the repositioning or catch this repositioning event.

    I'm using OpenXR.
     
  2. glenneroo

    glenneroo

    Joined:
    Oct 27, 2016
    Posts:
    228
    Try changing the Tracking Origin Type to Floor Level (I'm not sure of the exact values in OpenXR - those are the options in OVRManager).
     
    DevDunk likes this.
  3. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,004
    It is set to floor level.
     
  4. glenneroo

    glenneroo

    Joined:
    Oct 27, 2016
    Posts:
    228
    That's weird. I'm out of ideas. I just fixed this bug myself by changing from Stage to Floor Level.

    Here is how to receive the event:
    Code (CSharp):
    1. OVRManager.display.RecenteredPose += OculusRecenter;
    It would help if you could post any relevant settings e.g. screenshot of OVRManager.

    And double-check your code to see if you are doing anything with OVRManager that may cause issues.
     
  5. glenneroo

    glenneroo

    Joined:
    Oct 27, 2016
    Posts:
    228
    You might also want to experiment with this:
    Code (CSharp):
    1. OVRManager.instance.AllowRecenter = true/false;
    I am personally not sure if this should be set before/after calling:
    Code (CSharp):
    1. OVRManager.display.RecenterPose();
     
  6. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,004
    I'm not using OVR I want to use pure OpenXR.
     
  7. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    In another post the unity team stated they're working on OpenXR recenter
     
    koirat likes this.