Configuring the ARCamera Prefab for Digital Eyewear
Follow these instructions to configure the Digital Eyewear section of the VuforiaConfiguration asset to support either Optical or Video See-Through head-worn eyewear devices. These settings will configure your project for stereo rendering and also enable you to specify whether Vuforia Engine should utilize the functionality for a 3rd party AR/VR SDK.
1. Add an ARCamera instance to your scene.
2. Select which eyewear type you are building for in the Digital Eyewear section
Selecting either Optical or Video See-Through will add a pair of stereo cameras to your ARCamera hierarchy.
After setting the Eyewear Type to Video See-Through, you can specify which Stereo Camera Configuration to use. This setting enables you to bind the Vuforia ARCamera to the camera rig of a 3rd party SDK, such as Oculus. If you aren't utilizing a 3rd party SDK with Vuforia, you can simply use the default Vuforia Stereo Camera Config.
Configuring for Optical See-Through Eyewear
Steps to configure for Optical See-Through Eyewear
Select the See Through Configuration for the eyewear device you are using. If you don't see a configuration specific to your device make and model, select the Vuforia configuration.
Configuring for Video See-Through Eyewear
Steps to configure for Video See-Through Eyewear
Now define which Viewer Type you are targeting - again, this only applies to Video See-Through eyewear.
4. Set a camera offset for Play Mode and video see-through eyewear
The camera offset should correspond to the interpupillary distance that you want to simulate in Play Mode and for apps running on devices. The interpupillary distance (IPD) is the distance between the centers of the pupils of someone's eyes. Typical IPD values for adults is between 54 and 68mm.
Note: Camera offset has no effect in apps running on optical see-through devices.
Viewport Configuration for Video See-Through Eyewear
The size and offset distance of the stereo viewports for camera see-through devices can be configured using the Camera Offset field in the VuforiaConfiguration asset which is accessible from the ARCamera's Inspector panel via the Open Vuforia Configuration button. You can also search for VuforiaConfiguration in the Project panel.
Camera Offset defines the distance between the stereo viewports in scene units (mm) and can be used to define an interpupillary distance ( IPD ) for the user. Camera Offset is only applicable to video see-through applications, and has no effect on optical see-through devices. The Camera Offset can be adjusted at runtime in Play Mode to evaluate the effect of different settings. The following example uses a camera offset of 42mm and a scale factor of 0.32.