Mixed Reality with Meta Quest3

Using realvirtual.io and Meta Quest 3 - A Quick Guide

The Meta Quest 3 stands as an affordable and versatile Mixed Reality device, streamlining the development process for immersive applications. However, the plethora of installations and dependencies can sometimes pose a challenge. To mitigate this, we offer a concise, step-by-step guide detailing the essential steps for building applications for the Meta Quest XR Device.

Key Features of Meta Quest 3:

  • Standalone Capability: Supports both local applications and PC streaming, offering flexibility in how content is delivered and experienced.

  • Passthrough Functionality: Utilizes the front camera to blend digital and physical worlds, paving the way for compelling Mixed Reality applications.

  • Hand Tracking: Offers intuitive interaction within the virtual environment, allowing for a more natural and immersive experience.

Prepare Meta Quest Account and Meta Quest Device settings

1. Meta Developer Account Setup

To deploy applications to your Meta Quest 3, it is essential to have a Meta Developer Account. Follow these steps to set up your account and ensure proper permissions for deploying Unity applications.

  1. Account Creation or Login:

  2. Account Configuration on Meta Quest 3:

    • Add your developer account to the Meta Quest 3 device.

    • Ensure that the account possesses admin privileges, particularly for Unity app uploads.

2. Developer Mode Activation

Developer Mode needs to be activated on your Meta Quest 3 to enable development features and app deployment. The Meta Quest mobile app is required for this process.

  1. Meta Quest App Installation:

    • Install the Meta Quest App on your mobile phone from the respective app store.

  2. Activate Developer Mode:

    • Follow the detailed instructions provided here to activate Developer Mode on your Meta Quest 3 via the Meta Quest App.

3. Meta Quest Developer Hub Installation - optional

The Meta Quest Developer Hub is a crucial tool for managing your development workflow, including app deployment and performance monitoring.

  1. Device Connection:

    • Connect your Meta Quest 3 to your PC using a compatible USB cable.

  2. Software Installation:

4. USB Driver for Debugging (Windows) - optional

For adb (Android Debug Bridge) debugging on Windows, the Google USB Driver is required. This driver facilitates the connection and communication between your Meta Quest 3 and the PC.

  1. Driver Download and Installation:

    • Download the Google USB Driver from Google USB Driver.

    • Follow the installation instructions provided on the website.

Install needed Unity Packages

1. Add Android Build Support

  1. Unity Hub: Use UnityHub to add Android build support to your specific Unity version.

2. Configure Unity for XR Development

  1. Project Settings: In Unity, go to Edit > Project Settings > XR Plugin Management.

  2. Install XR Plugin: Install the XR Plugin Management.

  3. Enable Oculus Plugin: Enable the Oculus plugin for both PC and Android platforms under the plugin providers section.

3. Install Meta XR SDK

  1. Unity Asset Store: Locate the Meta XR All-in-One SDK asset on the Unity Asset Store: Meta XR All-in-One SDK (https://assetstore.unity.com/packages/tools/integration/meta-xr-all-in-one-sdk-269657).

  2. Asset Acquisition: Click on "Add to My Assets". When prompted, select "Open in Unity".

4. Setup Oculus Integration

  1. Accessing Oculus Setup:

    • After Unity restarts, find the Oculus logo at the bottom right of the Unity Editor.

    • Click the logo to launch the Oculus Setup tool.

  2. Configuration:

    • Use the "Fix All" and "Apply All" options under both the PC and Android tabs to ensure proper setup.

5. Prepare for Android Builds

  1. Build Settings:

    • Navigate to File > Build Settings.

    • Change the target platform to Android.

  2. Scene Configuration:

    • Disable any active cameras in your scene to avoid conflicts.

6. Configure Camera Rig

  1. Setup OVRCameraRig:

    • In your Project files, find and drag the OVRCameraRig into your scene.

  2. Configure Tracking:

    • Select the OVRCameraRig GameObject.

    • In the Inspector panel, under Tracking, set the Tracking Origin Type to "Floor Level".

    • Ensure you enable support for the Quest 3 in Target Devices.

7. Building to the Quest

  1. Access Build Settings:

    • Go to File > Build Settings.

    • Ensure the relevant scenes are added by clicking "Add Open Scenes".

  2. Connect Quest:

    • Connect your Quest to your PC using a USB cable.

    • Verify that the Quest is in developer mode. You will see a message in the Quest asking if you trust the connected PC

    • In Unity, set your Quest as the Run Device.

  3. Build and Run:

    • Click "Build and Run" to compile your application and deploy it directly to the Quest.

Debugging Quest Applications

For debugging Android Applications in general and Meta Quest Applications we recommend using Android Logcat. Android Logcat is displaying live the Android log in the Unity Editor, while the Quest is connected. You can filter here for all Unity Console Log messages in a Android Application which is running on the Quest.

Install Android Logcat via the Unity Package Manager:

To open the Android Logcat window in the Unity Editor:

  • Menu: Window > Analysis > Android Logcat.

Last updated