Composition Layer
Introduction
In XR, the render pipeline will sample the content (what the player sees in the app) twice. By doing so, the graphics looks worse and makes it harder for the player to see some important information, such as texts. By using Composition Layer, we can bypass one of the sampling processes, which will result in a much better and clearer image.
Supported Platforms and Devices
Platform | Headset | Supported Shape | |
PC | PC Streaming | Focus 3/XR Elite/Focus Vision | Quad |
Pure PC | Vive Cosmos | X | |
Vive Pro series | X | ||
AIO | Focus 3/XR Elite/Focus Vision | Quad / Cylinder ※ |
※ Cylinder shape is supported on UE5.3 and above.
Enable Plugins
- Edit > Plugins > Search for OpenXR and make sure it is enabled.
- Note that the " SteamVR " and " OculusVR " plugin must be disabled for OpenXR to work.
- Restart the engine for the changes to take effect.
How to use OpenXR Composition Layer in Unreal Engine
- Make sure OpenXR is enabled.
-
Please visit Unreal Engine documents below:
- OpenXR Stereo Layers Overview
- OpenXR Stereo Layers Quick Start
※ Depth is not suported.
※ Stereo Layer Component with type Face Locked & Tracker Locked should be added to player pawn. Stereo Layer Component with type World Locked should not be added to player pawn.
Play the sample map
- The sample map is under Content > CompositionLayer > Map.
- Sample map controls.
Press Right-hand Grip key: Enable/disable showing face-lock composition layer.
Press Right-hand Trigger key click on UI: Change shape of composition layer, or sample content shown on the composition layer.