Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft HoloLens Developer???s Guide

You're reading from  Microsoft HoloLens Developer???s Guide

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781786460851
Pages 390 pages
Edition 1st Edition
Languages
Author (1):
Dennis Vroegop Dennis Vroegop
Profile icon Dennis Vroegop
Toc

Sharing world coordinates


So far, we have been sending random data back and forth. This is great; this means you can have users interact with each other's devices over the network. Imagine we have an app that has an option that toggles the state of a hologram. If one user toggles the state, we can send a message to the other user so that her hologram does the same.

However, what we have not done yet is share coordinates. If we want to place a hologram in the center of a table, then it would make sense if both users saw that object in the same location.

Of course, this only works if the users are in the same area. If they are remote, then you cannot do this. Remember the remark I made when we talked about loading spatial anchors, this can go wrong if the HoloLens does not recognize the room. The same goes for sharing anchors. You can share your anchors but there is no guarantee the receiving device actually understands this. You have to make sure your code handles this.

How would we do this...

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 $15.99/month. Cancel anytime