Building for HoloLens – Vuforia

To build this project for HoloLens using the VuMark targets is not very different from the project we have built throughout the chapter. HoloLens-specific settings are the same that we've seen in previous chapters. Here is a summary of this:

  1. Set up the HoloLens Camera. In Hierarchy, create GameObject | Camera and rename it HoloLensCamera.
  2. Set Clear Flags to Solid Color and set Background to black (0,0,0).
  3. Bind the camera to Vuforia. Go to Vuforia | Configuration, set Select Eyewear Type to Optical See-Through, and set See Through Config to HoloLens.
  4. In Hierarchy, select the AR Camera object and drag HoloLensCamera to the Central Anchor Point slot in the Vuforia Behavior component.
  5. Build the settings. Select Windows Store as Target Platform, choose SDK: Universal 10, UWP Build Type: D3D, and check the Unity C# Projects checkbox.
  6. In quality settings, choose the Fastest default level for the Windows Store platform.

In Player settings, do the following:

  1. Go to Publishing Settings. In Capabilities, ensure all the following are checked: Internet client, Pictures library, Music library, Videos library, Webcam, Microphone, Spatial perception.
  2. For Other Settings, check Virtual Reality Supported and ensure Windows MixedReality is present in the list of SDKs.
  3. Set up a build and open the project in Visual Studio. Then, set Solution Configuration to Release, Platform to x86, and Target to the emulator or remote device (as explained in Chapter 3, Building Your App).

That should do it.

If you want to try and build a markerless version of the project for HoloLens, see the Building and running – HoloLens with MixedRealityToolkit section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset