Adding HoloLensCamera to the Scene

To configure Vuforia to use the HoloLens camera, there are a few things to do. First, we will add a HoloLens camera to the scene, then we'll bind it to the AR Camera as shown ahead. Refer to the Camera in Unity documentation from Microsoft at https://developer.microsoft.com/en-us/windows/holographic/camera_in_unity.

  1. Select GameObject | Camera.
  2. In Inspector, rename it to HoloLensCamera.

 

  1. Set Clear Flags to Solid Color.
  2. Set Background to black (0,0,0,0).
  3. The HoloLens docs recommend setting Clipping Planes | Near to 0.85 and that may be a best practice for comfort, but I find it constraining working in my small office.
  4. Reset its Transform Position to (0,0,0).

The resulting camera settings are shown in ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.