Forum Discussion

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

[Gear VR] Potential bug with camera re-orientation

When inside the game, if I look anywhere (up in the sky for example), then go into Universal menu (didn't try Back button short press), then press Back button to go back into the game, view gets reoriented and the camera ends up with the same default orientation as on spawn, when game starts initially. I think camera should have same orientation as when I exited into Universal Menu.

There is no way to set angles after exiting menu, so I believe SDK should be doing that.

Bug or feature ? :)

Thanks

P.S. Never tested it in other versions, but this is in 4.13.0

7 Replies

Replies have been turned off for this discussion
  • Does Unreal expose some kind of VRFocusLost/VRFocusGained event? In Unity, when you go into the Universal menu a VRFocusLost event is fired, which you can use to record current state. Then when you return to your game, VRFocusGained is fired, which you could use to reset things how you want. Are those events available to you?


  • Does Unreal expose some kind of VRFocusLost/VRFocusGained event? In Unity, when you go into the Universal menu a VRFocusLost event is fired, which you can use to record current state. Then when you return to your game, VRFocusGained is fired, which you could use to reset things how you want. Are those events available to you?


    That I don't know. When it comes to UE4 and Oculus, it's a black box :(
  • @vrdaveb Is it a bug or is there a way to restore orientation after coming back from Universal menu?

    Thanks
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    There isn't an easy way to undo a user's reorient command in the universal menu. UE4 currently exposes vr focus only through C++, but you could implement a BP node or event on top of that if you need it before we can provide it.
  • Ouch :o  I can't implement BP nodes, I can only use them  ;)  :D

    Point taken though 
  • @vrdaveb

    Apparently there is Get VR Focus State node in BP. Is it related? How would I use it ?
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    You could save the camera pose each frame when the app has focus, stop saving it when the app loses focus, and then set it back to the last saved pose when it changes from not having focus to having focus.