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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Augmented Reality for Developers

You're reading from   Augmented Reality for Developers Build practical augmented reality applications with Unity, ARCore, ARKit, and Vuforia

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781787286436
Length 548 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jonathan Linowes Jonathan Linowes
Author Profile Icon Jonathan Linowes
Jonathan Linowes
Krystian Babilinski Krystian Babilinski
Author Profile Icon Krystian Babilinski
Krystian Babilinski
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Augment Your World FREE CHAPTER 2. Setting Up Your System 3. Building Your App 4. Augmented Business Cards 5. AR Solar System 6. How to Change a Flat Tire 7. Augmenting the Instruction Manual 8. Room Decoration with AR 9. Poke the Ball Game

Including the instructions panel in AR


Our How To Change A Tire app seems completely done. But in user testing, we found that users didn't like having to toggle back and forth between AR Mode and non-AR 2D mode to see the text instructions. We have decided to show the 2D instruction panel in world space also while in AR. Let's name it AR Canvas and scale and position it in the scene as follows:

  1. In Hierarchy root, Create | UI | Canvas and name it AR Canvas.
  2. Set its Render Mode to World Space.
  3. Set Width and Height to 100, 100.
  4. Rotation: 90, 0, 0, so it's flat on a top-down view, like in AR.
  5. Scale from pixel layout space to world space; we like 0.004, 0.004, 0.004 (or try other values, such as 0.001).
  6. Position it a bit out of the way, at Pos X, Pos Y, Pos Z: 0.0, 0.0, 0.1.
  7. Dynamic Pixels Per Unit: 2 to make the text a little crisper.

Now, we want to show basically the same content panel that we already built in the Main Canvas. The easiest thing to do is duplicate it and move the copy into the AR Canvas...

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