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

Chapter 4. Building Paper Trash Ball in Unity

Imagine that you are sitting at your desk; in front of you is a scrap piece of paper and not too far to your left is the rubbish bin (let's be environmentally conscious and make it a recycling bin). Like many of your peers, you instinctively crumble up the piece of paper and, with your best attempt, throw the crumpled piece of paper into the bin.

There's something about this simple act that is satisfying, so much so that a game created by Backflip Studios, called Paper Toss, remained number one on the app store for most of 2009.

To get ourselves acquaint with developing for HoloLens using Unity, we will reimagine this game for mixed reality (MR); by the end of this chapter and you will know how to do the following:

  • Configuring a Unity project for HoloLens
  • Mapping and understanding your environment
  • Placing holograms in the environment using gaze and the tap gesture
  • Allowing the user to toss the paper in the bin using gaze and gestures

There is a lot...