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

Adding visual helpers to the AR Prompt


Our plan is for the user to capture an image of his flat tire and then register augmented graphics to the captured image target. We are not so advanced as to have artificial intelligence (AI) image recognition (sorry, that's beyond the scope of this book), so we're going to rely a little bit on our user to choose a capture that's approximately the right position and size for our illustrations. Therefore, we need to provide some visual helpers to guide the user.

Adding a cursor

First we will add a small cursor to the middle of the screen, to indicate where the center of the car's tire is:

  1. In Hierarchy, select AR Prompt and create UI | Image; name it Center Cursor.
  2. Set its Source Image sprite (by clicking the little doughnut icon) to Knob.
  3. Change its Scale to 0.2, 0.2, 0.2.

If you press Play, I think you'll agree that's helpful.

Adding a registration target

The cursor helps guide the position of the capture. We also need something to guide the size. A circle...

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