OpenXR Stereo Layers Quick Start

Learn how to add an OpenXR Stereo Layer to your project.

This page describes how to get started with Stereo Layers in your OpenXR project.

The steps and images on this page use the VR Template Project as a starting point. The steps should apply to any project set up for OpenXR.

To add an OpenXR Stereo Layer to your project's Pawn:

  1. In the Content Drawer, navigate to Content > VRTemplate > Blueprints and double-click the VRPawn Asset to open it in the Blueprint Editor.

    01-select-vr-pawn_ue5.png

  2. In the Components panel of the Blueprint Editor, click the Add Component button and search for Stereo Layer.

    02-add-stereo-layer_ue5.png

  3. Drag the new Stereo Layer Component on top of the Camera Component to make it a Child Actor of the Camera.

    03-stereo-layer_ue5.png

  4. Select the Stereo Layer Component from the Components list to open its Details panel. Under the Transform section, set the X value of Location to 100.

    04-change-location_ue5.png

  5. Switch to the Viewport tab of the Blueprint Editor to see the location of the Stereo Layer relative to the Pawn's Camera.

    05-select-viewport_ue5.png

  6. In the Details panel, under the Stereo Layer section:

    • Assign a texture to the Texture parameter. In this example, the T_Grid texture is used.

    • Set the Stereo Layer Shape to Quad Layer.

    06-add-texture_ue5.png

  7. Compile the Blueprint and close the Blueprint Editor.

    07-select-compile-button_ue5.png

  8. Press Play in VR to launch your project on the headset and verify that the texture is displayed in front of you and locked to the HMD.

    image alt text

To change where the Stereo Layer appears, change the Stereo Layer Type parameter. See the OpenXR Stereo Layers Overview for details on the available options.