Book Image

Microsoft HoloLens Developer???s Guide

By : Dennis Vroegop
Book Image

Microsoft HoloLens Developer???s Guide

By: Dennis Vroegop

Overview of this book

HoloLens, Microsoft’s innovative augmented reality headset, overlaps holograms into a user’s vision of their environment. Your ideas are closer to becoming real when you can create and work with holograms in relation to the world around you. If you are dreaming beyond virtual worlds, beyond screens, beyond pixels, and want to take a big leap in the world of augmented reality, then this is the book you want. Starting off with brainstorming and the design process, you will take your first steps in creating your application for HoloLens. You will learn to add gestures and write an app that responds to verbal commands before gradually moving on creating sounds in the app and placing them in a 3D space. You will then communicate between devices in the boundaries of the UWP model.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Spatial understanding in DirectX


We have had enough talk about the ideas and principles behind spatial mapping. It is time to put this to practice.

Initial app

Let us start the way we always start. Start Visual Studio and create a new Universal / Holographic C# app with SharpDX as our library. You know the drill by now. Set the target as x86 if it is not already, and deploy this first version of the emulator or the device. This will be our starting point.

I have called my app SpatialDemo.

Spatial capabilities

Spatial surface detection is done by the depth sensor in cooperation with the HPU. This means we have to access these. Now, accessing a processing unit is not a problem in UWP apps, but accessing sensors is. You cannot simply get data from the microphone, the webcam, and other sensors in UWP apps. The apps are running as a sandbox, meaning you cannot do much more than render on a screen and get input from a keyboard, mouse, and in our case, gestures. That is all. As we have seen in the chapters...