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

Nothing but net - throwing paper


As we did in the previous chapter, we will implement throwing by tracking the user's hands and using the tracked direction and displacement to influence the papers flight path, but unlike the previous chapter, we won't be implementing this from scratch, but we'll  take advantage of a script that comes bundled with HoloTookit, namely, the GestureManager script.

GestureManager encapsulates a lot of the logic for detecting tap and manipulation gestures and managing their state. Here, we are mainly interested in the manipulation gesture. The manipulation gesture is activated when the user holds their finger down and, when activated, the user's hand is tracked with its position being updated and made accessible.

Let's get started by jumping back into the Unity Editor and add this script to the scene. GestureManager requires that GazeManager is attached to the same GameObject. We will attach it to our Gaze GameObject. With the scene open, select the Gaze GameObject...