Skip to main content
Inspiring
September 14, 2016

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

7 replies

Inspiring
September 14, 2016
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?
motorsepAuthor
Inspiring
September 14, 2016


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 :(
motorsepAuthor
Inspiring
September 14, 2016
@vrdaveb Is it a bug or is there a way to restore orientation after coming back from Universal menu?

Thanks
Inspiring
September 14, 2016
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.
motorsepAuthor
Inspiring
September 14, 2016
Ouch :o  I can't implement BP nodes, I can only use them  ;)  :D

Point taken though 
motorsepAuthor
Inspiring
September 15, 2016
@vrdaveb

Apparently there is Get VR Focus State node in BP. Is it related? How would I use it ?
Inspiring
September 15, 2016
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.