đ Stumbled here on accident? Start with the introduction!
đ In this article, you will learn the setup process for URP (Universal Render Pipeline) and the camera configuration necessary to enable passthrough functionality. This guide will provide step-by-step instructions to ensure that passthrough operates effectively in your project, essential for creating immersive augmented reality experiences.
âšī¸ If you find yourself facing any difficulties, remember that you can always refer to or download the code from our accompanying GitHub repository
To activate passthrough in our Android build, adjustments are required for the camera and URP asset. The camera's Background Type
should be set to solid color, but to enable passthrough, modify the Background
color's alpha value to 0. This can be done by clicking on the black bar to access the color picker, as demonstrated in the following two screenshots.
âšī¸ Background
: the Camera clears its color buffer to this color before rendering.
Close the color picker, access the Project Settings by navigating to Edit â Project Settings, then proceed to the Quality section. You will notice that the Balanced level is set as the standard quality for our Android build.
The Balanced URP Asset features an HDR (High Dynamic Range) option that is unsupported and results in passthrough being unavailable. To rectify this, disable HDR in your URP-Balanced asset, located under Assets/Settings under Project
. This adjustment is crucial for ensuring that passthrough functionality is enabled correctly in your project.
Testing the app
That's all for now. We're ready to test our application. From now on we need to build the application and deploy it to the Meta Quest 3 since Passthrough is not available via hitting Play.
Ensure that all configurations are correctly set by navigating to File â Build Settings. Once you've verified these settings, simply click on Build And Run
to proceed.
You should now see the Unity project running in your headset as seen in the next screenshot.
Passthrough is now successfully enabled in our Android build, as evidenced by the recent adjustments. This achievement marks a significant step in ensuring that the application functions with the desired augmented reality capabilities on Android devices.
Next article
In our upcoming article, we will focus on configuring the left and right controllers for the Meta Quest 3. This step is crucial for creating a responsive and intuitive user experience in virtual reality. We'll guide you through the process of setting up these controllers in Unity, discussing how to map their buttons.
Top comments (0)