Book Image

Microsoft HoloLens Developer???s Guide

By : Dennis Vroegop
Book Image

Microsoft HoloLens Developer???s Guide

By: Dennis Vroegop

Overview of this book

HoloLens, Microsoft’s innovative augmented reality headset, overlaps holograms into a user’s vision of their environment. Your ideas are closer to becoming real when you can create and work with holograms in relation to the world around you. If you are dreaming beyond virtual worlds, beyond screens, beyond pixels, and want to take a big leap in the world of augmented reality, then this is the book you want. Starting off with brainstorming and the design process, you will take your first steps in creating your application for HoloLens. You will learn to add gestures and write an app that responds to verbal commands before gradually moving on creating sounds in the app and placing them in a 3D space. You will then communicate between devices in the boundaries of the UWP model.
Table of Contents (16 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Spatial understanding in Unity3D


In Unity3D there are two ways to handle spatial mapping. Well, to be honest, there are three, but I will leave the third option for Chapter 8, Speed up Your DevelopmentAdvanced Unity3D. For now, we will focus on the things Unity3D gives us out-of-the-box.

There is an easy way and a harder way. The easiest way is a matter of just dropping one or two components into your scene. The harder way is to write the code to do yourself what those components do for you. Needless to say, the harder way is the more flexible way. You can achieve things you cannot achieve doing it the easy way.

However, rest assured, the harder way is nowhere near as complicated as the things we looked at in the part about DirectX. There are a lot of similarities, of course, but you will find the code is a lot easier to understand. So, we will start with the harder way and conclude with the easier way.

Writing scripts for spatial mapping in Unity3D

We will work on our RockOn app a bit more...