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.
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?