Book Image

Microsoft HoloLens By Example

By : Joshua Newnham
Book Image

Microsoft HoloLens By Example

By: Joshua Newnham

Overview of this book

Are you a developer who is fascinated with Microsoft HoloLens and its capabilities? Do you want to learn the intricacies of working with the HoloLens SDK and create your own apps? If so, this is the book for you. This book introduces and demystifies the HoloLens platform and introduces new ways you can interact with computers (Mixed Reality). It will teach you the important concepts, get you excited about the possibilities, and give you the tools to continue exploring and experimenting. You will go through the journey of creating four independent examples throughout the book, two using DirectX and two using Unity. You will learn to implement spatial mapping and gesture control, incorporate spatial sound, and work with different types of input and gaze. You will also learn to use the Unity 5 SDK for HoloLens and create apps with it. Collectively, the apps explore the major concepts of HoloLens, but each app is independent, giving you the flexibility to choose where to start (and end).
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
6
Interacting with Holograms Using Unity

Adding HoloToolkit to your project


Our first job is to get HoloToolkit into our project. To do this, we will be loading a version of HoloToolkit-Unity (original source from https://github.com/Microsoft/HoloToolkit-Unity) that comes bundled with the project files for this book under the directory HoloToolkit-Unity

Note

The version of HoloToolkit used in this chapter was released in late 2016. You can clone this version directly from the original source by running the following commands in the Command Prompt:

git clone https://github.com/Microsoft/HoloToolkit-Unity.gitgit checkout cd2fd2f9569552c37ab9defba108e7b7d9999b12

We now will create a Unity package so we can easily import it into our project. Once the HoloToolkit-Unity project is loaded in Unity, select everything in your Project panel. With everything selected, export it as a Unity package via Assets | Export Package. Leaving everything checked, click on the Export button.

Note

The reason for selecting everything is to ensure we include...