Immersive videos are rendered onto a sphere around the user by using one or more equirect layers. The information for each of these is contained in an XrCompositionLayerEquirectKHR structure.
That structure includes a "pose" field which may be used to change the base orientation of the projected video.
This PR introduces OpenXRLayerEquirect::SetReorientPose() which updates that "pose" information for an equirect layer.
During DeviceDelegateOpenXR::EndFrame(), the current reorient transform is passed on to the equirect layers displaying the immersive video.
In this way, the user is able to freely reorient immersive videos.
Immersive videos are rendered onto a sphere around the user by using one or more equirect layers. The information for each of these is contained in an
XrCompositionLayerEquirectKHR
structure.That structure includes a "pose" field which may be used to change the base orientation of the projected video.
This PR introduces
OpenXRLayerEquirect::SetReorientPose()
which updates that "pose" information for an equirect layer.During
DeviceDelegateOpenXR::EndFrame()
, the current reorient transform is passed on to the equirect layers displaying the immersive video.In this way, the user is able to freely reorient immersive videos.