Use Spatial Mapping for positioning

To actually move the picture with the tool and have it attached to the walls, we are going to need the SpatialMapping prefab from MixedRealityToolkit. Its Spatial Mapping Manager component controls the scanning and display of the room model mesh. The HoloLens uses depth sensing technology in the device to build a 3D geometric mesh of your local environment, what is called a Room Model. This mesh is added to your scene as a game object (children of the SpatialMapping object), and resides on a separate layer-Layer 31 by default-and it is specified in the physics layer. The SpatialMapping Inspector is shown here:

Let's add it now:

  1. From Project Assets/HoloToolkit/SpatialMapping/Prefabs, drag SpatialMapping ...

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.