Develop
Develop
Select your platform

Passthrough API in DroneRage

The Passthrough API provides a real-time and perceptually comfortable 3D visualization of the physical world in the Meta Quest headsets. It allows developers to integrate the passthrough visualization with their virtual experiences.

Setup

In Discover, the OVRPassthroughLayer and OVRManager scripts are attached to the OVRCameraRig GameObject. After selecting OVRCameraRig, under OVRManager, two Passthrough settings are updated.
passthrough support panel in Unity's Editor's quest features
The Passthrough Support level is set to Required because this app requires Passthrough for the DroneRage app.
Under Insight Passthrough in the Hierarchy, Enable Passthrough is selected so that passthrough is initialized during the app setup.

Appearance & Shaders

DroneRage uses a few shaders for rendering the scene, which can be found in the folder /Assets/Discover/DroneRage/Shaders/.
These shaders are used after the player selects an app from the menu and DroneRage is started.
Unity editor's network application manager with alt wall materials highlighted
The NetworkApplicationManager manages things like opening and closing applications. The EnvironmentSwapper is attached and swaps the walls and ceilings for their alternate DroneRage appearance when that application is opened.
Did you find this page helpful?