Mixed Reality with Meta Quest3
Using realvirtual.io and Meta Quest 3 - A Quick Guide
Last updated
Using realvirtual.io and Meta Quest 3 - A Quick Guide
Last updated
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.
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.
Account Creation or Login:
Visit Meta Auth Portal to create a new account or log in to an existing one.
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.
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.
Meta Quest App Installation:
Install the Meta Quest App on your mobile phone from the respective app store.
Activate Developer Mode:
Follow the detailed instructions provided here to activate Developer Mode on your Meta Quest 3 via the Meta Quest App.
The Meta Quest Developer Hub is a crucial tool for managing your development workflow, including app deployment and performance monitoring.
Device Connection:
Connect your Meta Quest 3 to your PC using a compatible USB cable.
Software Installation:
Download and install the Meta Quest Developer Hub from Meta Quest Developer Hub.
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.
Driver Download and Installation:
Download the Google USB Driver from Google USB Driver.
Follow the installation instructions provided on the website.
Unity Hub: Use UnityHub to add Android build support to your specific Unity version.
Project Settings: In Unity, go to Edit > Project Settings > XR Plugin Management
.
Install XR Plugin: Install the XR Plugin Management.
Enable Oculus Plugin: Enable the Oculus plugin for both PC and Android platforms under the plugin providers section.
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).
Asset Acquisition: Click on "Add to My Assets". When prompted, select "Open in Unity".
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.
Configuration:
Use the "Fix All" and "Apply All" options under both the PC and Android tabs to ensure proper setup.
Build Settings:
Navigate to File
> Build Settings
.
Change the target platform to Android.
Scene Configuration:
Disable any active cameras in your scene to avoid conflicts.
Setup OVRCameraRig:
In your Project files, find and drag the OVRCameraRig
into your scene.
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.
Access Build Settings:
Go to File
> Build Settings
.
Ensure the relevant scenes are added by clicking "Add Open Scenes".
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.
Build and Run:
Click "Build and Run" to compile your application and deploy it directly to the Quest.
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.