Spatial Mapping in practice

Here, we will put the Spatial Mapping prefab into our application and set up the Spatial Mapping model that we imported in the preceding section. This will allow us to see Spatial Mapping at work inside the Unity Editor without having to go back and forth to the HoloLens.

In your Project View, go to the HoloToolkit | Spatial Mapping | Prefabs directory and click on the Spatial Mapping prefab and drag it to the Hierarchy view and release it.

Spatial Mapping can be broken down into two primary parts:

  • Spatial Surface Observer: This component allows us access to the Spatial Mapping surface information created by the HoloLens sensor array. 
  • Spatial Surface: The surface information or mesh data that is created by the sensor array on the HoloLens. Simply put, this is a collection of all the surfaces that can be seen by the HoloLens, converted into triangles.

If you look at the Inspector now, you should see a Game Object with three main components: the Spatial Mapping Observer, Spatial Mapping Manager, and Object Surface Observer.

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

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