Develop
Develop
Select your platform

Projected Passthrough Tutorial

Updated: Sep 4, 2024
In this tutorial, we’ve modified the basic Passthrough tutorial to implement a Projected Passthrough.

Before You Begin

Follow the basic Passthrough tutorial. Once you complete that, you will be ready to do the Projected Passthrough tutorial.

1. Create a Solid Plane

  1. Open the basic Passthrough tutorial project.
  2. In the Place Actors tab, navigate to the Shape tab and drag a Plane into the scene.
  3. Set Transform > Location to (600, 0, 100).
  4. Set Transform > Rotation to (0, 90, 0).
  5. Set Transform > Scale to (4, 4, 4).
  6. The Static Mesh has been prepopulated with Plane, Click the dropdown and select Edit to open the Mesh Editor.
  7. On the Mesh Editor’s Details panel, search for Allow CPUAccess and tick it.
Projected Passthrough Window tutorial Mesh Setup
Projected Passthrough Window tutorial Mesh CPU Access

2. Update Passthrough Layer

  1. Close the Mesh Editor and back to the main scene.
  2. On the World Outliner tab, select CameraActor, and then on the Details tab, select OculusXRPassthroughLayer.
  3. In the stereo layer section, set the stereo layer shape to User Defined Passthrough Layer, and set Layer Placement to Overlay
Projected Passthrough Window tutorial Passthrough Layer Setup

3. Add Surface Geometry

  1. On the World Outliner tab, select Plane.
  2. Click Blueprint on the toolbar and click Open Level Blueprint.
  3. Right-click on the Blueprint editor and click Create a Reference to Plane.
  4. Switch to the main scene and select CameraActor on the World Outliner tab.
  5. Back to Level Blueprint, right-click on the Blueprint editor, and then click Create a Reference to CameraActor.
  6. Get the PassthroughLayer from the CameraActor and set Plane’s Static Mesh to it with Add Static Surface Geometry. Your Blueprint should set to this:
Projected Passthrough Window tutorial Passthrough Layer Add Static Surface Geometry

4 Save, Build, and Run the Project

  1. Navigate to File > Save All.
  2. Go to File > Build Settings. Ensure Meta Quest is set as the run device.
  3. Click Build and Run.
Projected Passthrough Window tutorial Result
Did you find this page helpful?
Thumbs up icon
Thumbs down icon