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.
Example application created with Meta Quest 3
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.
Meta Quest 3 Headset
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.
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.
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.
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.
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.
Device Connection:
Connect your Meta Quest 3 to your PC using a compatible USB cable.
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.
Asset Acquisition: Click on "Add to My Assets". When prompted, select "Open in Unity".
4. Setup Oculus Integration
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.
5. Prepare for Android Builds
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.
6. Configure Camera Rig
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.
7. Building to the Quest
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.
Quest set as Run Device in Build Settings
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.