OpenXR Stereo Layers Quick Start

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

Windows
MacOS
Linux

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 Browser, navigate to Content > VRTemplate > Blueprints and double-click the VRPawn Asset to open it in the Blueprint Editor.

    image alt text

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

    image alt text

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

    image alt text

  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.

    image alt text

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

    image alt text

  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.

    image alt text

  7. Compile the Blueprint and close the Blueprint Editor.

    image alt text

  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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss