googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

ResetHeadRotation for GVRRenderer doesn't work when the phone is in portrait #322

Open Parmenione opened 6 years ago

Parmenione commented 6 years ago

I built an application in Swift with an extension of GVRRenderer. The user can view images in mono or stereoscopic version and navigate between different scenes ( change image on sphere). When the user changes scene, we should reset head rotation. This works fine when the view controller is fixed in landscape, but when the view is fixed in portrait it sometimes fails: the view is rotated of π. We tried to check the orientation of the camera after calling ResetHeadRotation: sometimes it turns out to be correct (- z) but the view drawn is wrong.

Is there any solution?