Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft HoloLens By Example

You're reading from   Microsoft HoloLens By Example Create immersive Augmented Reality experiences

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787126268
Length 406 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Joshua Newnham Joshua Newnham
Author Profile Icon Joshua Newnham
Joshua Newnham
Arrow right icon
View More author details
Toc

Procedurally placing our bin

In the previous chapter, we had the user explicitly place the bin. This was achieved by having the bin follow the user's gaze, positioning itself on valid surfaces, and setting its position after detecting an air tap from the user. In this chapter, we will bypass the user completely and place the bin automatically.

To be able to place the bin, at a reasonable location, we first need to better understand the environment. Similar to how we interpret the world through objects rather than pixels, essentially we need a way to express the environment in a more meaningful way than the mesh data we receive from the SurfaceObserver to be able to effectively place the bin procedurally, for example, recognizing a surface as being the floor, where bins normally reside. Luckily, HoloToolkit provides us with the necessary tools to achieve this and we will...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image