Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

[OpenXR] Reorient immersive videos #1359

Closed felipeerias closed 5 months ago

felipeerias commented 5 months ago

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.

javifernandez commented 5 months ago

@felipeerias s this PR still active ?

felipeerias commented 5 months ago

@javifernandez It was closed accidentally. This functionality was merged in https://github.com/Igalia/wolvic/pull/1362