Forum Discussion
motorsep
9 years agoMember
[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
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
- delphinius81Rising StarDoes 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?
- motorsepMember
delphinius81 said:
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 :( - motorsepMember@vrdaveb Is it a bug or is there a way to restore orientation after coming back from Universal menu?
Thanks - vrdavebOculus StaffThere 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.
- motorsepMemberOuch :o I can't implement BP nodes, I can only use them ;) :D
Point taken though - motorsepMember@vrdaveb
Apparently there is Get VR Focus State node in BP. Is it related? How would I use it ? - vrdavebOculus StaffYou 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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 2 years ago