Converting a handheld Unity (Vuforia or ARCore) project to a stereographic project viewable on a headset
Here is how we can convert a normal Unity/Vuforia or Unity/ARCore project (built for a handheld) to something that can be used with a Google Cardboard headset!
We will be able to achieve a view like this:
The instructions on: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/Integrating-Cardboard-to-the-ARVR-Sample.html were incomplete — a few more steps are required.
Open the Player Settings (Edit>Project Settings> Player) and in the XR Settings:
- “Vuforia Augmented Reality Supported” — if you’re using Vuforia, this should already be enabled. If you’re using ARCore, this should remain disabled.
- “Virtual Reality Supported” — enable this in both cases.
- After that, a new option — “Virtual Reality SDKs” will appear.
- If you’re using Vuforia, add the “Vuforia” option, and then the “Cardboard” option.
- If you’re using ARCore, just add the “Cardboard” option.
- “Enable Transition View” — enable this in both cases.
It should look like this now for the Vuforia case:
And like this for ARCore:
Only in the case for Vuforia, open Vuforia Configuration (Windows>Vuforia Configuration) and under Digital Eyewear, change the “Device Type” to “Phone + Viewer”.
Build and run the project — it should now display the scene in stereoscopic view!
(Based on the post by pablufo at https://developer.vuforia.com/forum/digital-eyewear/vuforia-ar-google-cardboard-black-screen)