Forum Discussion

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

Recenter / Quit from the Universal menu

I followed the guide:

https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-vr-focus/

But the associated flags in the sessions structure are always false, even when clicking on the corresponding buttons in the universal menu.

    ovrSessionStatus status;
    ovr_GetSessionStatus(m_ovrSession, &status);

    if (status.ShouldRecenter) // always false
    {
        ovr_RecenterTrackingOrigin(m_ovrSession);
    }

Due to the above I failed the app submission.

.HmdMounted and .IsVisible work fine.

Please advise. Thanks.

6 Replies

  • Rouslan's avatar
    Rouslan
    Honored Guest
    1.15. Before I posted here, I updated to the latest version, in case this was fixed. 

    I can provide a copy. Do you want source or binary? Alternatively, you could provide me with a sample app source that works. 

    Thanks. 
  • Rouslan's avatar
    Rouslan
    Honored Guest
    No, the app is written from scratch and calls the Oculus SDK directly.
  • Rouslan's avatar
    Rouslan
    Honored Guest
    The project is fairly large and it might be tricky to compile. Probably better to provide a binary build + the source file that is specific to Oculus handling?
  • mfmf's avatar
    mfmf
    Oculus Staff
    Does OculusRoomTiny (from the SDK downloads) work for you? You can check out the main.cpp there, though it looks basically the same as what you're doing. 
  • Rouslan's avatar
    Rouslan
    Honored Guest
    Thank you, mfmf. I can confirm that OculusRoomTiny (DX11) does not recenter too. Could you try it on your side?
  • Rouslan's avatar
    Rouslan
    Honored Guest
    Hmm, so you click on recenter at the universal menu and when you go back to the app, you are facing down the room?