Using the spatial anchors in DirectX

It is time to look at what this is and how it all works. We will, as we have always done, start with a new application, based on the template Universal DirectX Holographic app in C#.

Before we begin our coding, let me remind you that spatial anchors depend on the information the depth sensors give us. Therefore, we need to set the right capabilities in our app. If you do not do this, the whole thing simply will not work. So, open the Package.appxmanifest file and add the correct capabilities. Just as a reminder, we do so by adding the correct namespace to the Package element:

 <Package xmlns="" xmlns:mp="" ...

Get Microsoft HoloLens Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.