Book Image

HoloLens Blueprints

By : Abhijit Jana, Manish Sharma, Mallikarjuna Rao
Book Image

HoloLens Blueprints

By: Abhijit Jana, Manish Sharma, Mallikarjuna Rao

Overview of this book

Do you want to create stunning applications with HoloLens? Are you a developer who is fascinated with Microsoft HoloLens and its capabilities? If so, this is the book for you. This book introduces and demystifies the HoloLens platform and shows you different ways of interaction with computers (mixed-reality). You will start your mixed-reality journey by understanding different types of digital reality. You will learn to build your first holographic app. Also, you will understand holographic application integration possibilities within Line of Business Applications using Azure. Moving ahead, you will create Integrated Solutions using IoT with HoloLens. Gradually you'll learn how to create and deploy apps on a device. You will learn to publish application to the store; if you are an enterprise developer, you will also manage and distribute applications for enterprise-enabled or domain-joined HoloLens. Finally, you will develop an end-to-end realistic holographic app, ranging from scenario identification to sketching, development, deployment, and, finally, production.
Table of Contents (20 chapters)
Title Page
Credits
About the Authors
Acknowledgments
About the Reviewer
Disclaimer
Customer Feedback
www.PacktPub.com
Dedication
Preface
7
Build End-to-End Retail Solution - Scenario Identification and Sketching

Giving life to object - scripting


Now let's get into the scripting part. We will be using C# language for the script. In this section, we will discuss the following interactions with holograms:

  • Gaze: Highlighting and selecting objects
  • Air Tap: Applying an action on the selected object
  • Voice Command: Invoking an action through Voice Command
  • Speech: Response back from the hologram

Highlighting the objects - enabling Gaze

In the previous chapter, we discussed different forms of input and interaction models for HoloLens. Gaze is one of the main forms of input on HoloLens, which indicates where the user is currently looking. With Gaze we will highlight the following two components of our holographic object:

  • Lenses
  • Speaker

The Gaze manager

Once the user gazes at an object, a cursor will indicate the gazed object. To enable the gaze and have a cursor in your scene, we will use components from the HoloToolkit.

Following are the steps:

  1. Add an Empty Game Object in the Object Hierarchy and rename it Root.
  2. Go to...