Book Image

HoloLens Beginner's Guide

By : Jason M. Odom
Book Image

HoloLens Beginner's Guide

By: Jason M. Odom

Overview of this book

HoloLens revolutionizes the way we work and interact with the virtual world. HoloLens brings you the amazing world of augmented reality and provides an opportunity to explore it like never before. This is the best book for developers who want to start creating interactive and intuitive augmented reality apps for the HoloLens platform. You will start with a walkthrough of the HoloLens hardware before creating your first app. Next you will be introduced to the various HoloLens sensors and find out how to program them efficiently so that they can interact with the real world seamlessly. Moving on, you will learn how to create smart animations and add video overlay that implements real-time tracking and motion-sensing abilities to your HoloLens app. Finally, you will learn how to test your app effectively.
Table of Contents (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface

The Unity camera and HoloLens


The camera inside a game engine, such as Unity, is designed to capture and display a viewpoint to the player. In the case of the HoloLens, the camera is the user's perspective, much like a first-person game. There is one big difference though: the camera's controller is the user's head. This can be a tough factor to design around for some application types, especially UI.

What this amounts to, when designing an application for HoloLens, we need to think around the camera. We need to place the things that the user will interact with within a reachable distance. User interfaces, as well as the overall experience, will have a very different look and feel from what we have come to expect from a 2D screen. Also, of course, that is the point.

The Unity camera is highly customizable. For HoloLens development, we are fairly limited to what we can use:

The fields can be explained as follows:

  • Clear Flags: This will almost always be set to Solid Color.
  • Background: In most cases...