Lecture 7 from a course on Mobile Based Augmented Reality Development taught by Mark Billinghurst and Zi Siang See on November 29th and 30th 2015 at Johor Bahru in Malaysia. This lecture shows how to use Unity 3D and Vuforia to make mobile AR applications. Look for the other 9 lectures in the course.
Unblocking The Main Thread Solving ANRs and Frozen Frames
Mobile AR Lecture 7 - Introduction to Vuforia
1. LECTURE 7:
MOBILE AR USING VUFORIA
Mark Billinghurst
mark.billinghurst@unisa.edu.au
Zi Siang See
zisiang@reina.com.my
November 29th-30th 2015
Mobile-Based Augmented Reality Development
2.
3. What you will learn
• Introduction to Vuforia
• Platform and features
• How to install/set-up Vuforia
• Vuforia Basics
• Marker Tracking, Object tracking
• Deploying to Mobile Device
• Android, iOS
5. Vuforia Overview
• Platform for Mobile Computer Vision
• https://www.qualcomm.com/products/vuforia
• Released by Qualcomm in 2010, acquired by PTC 2015
• Used by over 100K developers, >10K applications
• Main Features:
• Recognition
• Image, text, object recognition
• Tracking
• Image, marker, scene, object
6. Vuforia
• Android
• iOS
• Unity
Extension
Device
SDK
• Target
Management
System
• App
Development
Guide
• Vuforia
Web
Services
Tools
&
Services
• Dedicated technical
support engineers
• Thousands of posts
Support
Forum
21. Unity Asset Structure
• Editor - Contains the scripts required to
interact with Target data in the Unity editor
• Plugins - Contains Java and native binaries
that integrate the Vuforia AR SDK with the
Unity Android or Unity iOS application
• Vuforia - Contains the prefabs and scripts
required to bring AR to your application
• Streaming Assets / QCAR - Contains the
Device Database configuration XML and
DAT files from the online Target Manager
23. Setting up a Vuforia Project
• Create a Project
• Replace Main Camera with AR camera
• Obtain a License Key
• Add license key to AR Camera
• Add Tracking Targets
• Add sample object
26. Obtain a License Key
• Vuforia 5 apps utilize a license key that uniquely identifies
each app. License keys are created in the License Manager
• The steps to creating a new license key are..
• Choose a SDK
• Choose a licensing option based on your requirements
• Provide your Billing Information if you've chosen to use a paid license
• Obtain your license Key
28. Add License Key to Vuforia Project
• Open ARCamera Inspector in Vuforia
• Assets -> Vuforia -> Prefabs
• Move AR Camera to scene hierarchy (Delete Main Camera)
• Paste License Key
29. Obtain a License Key
• Vuforia 5 apps utilize a license key that uniquely identifies
each app. License keys are created in the License Manager
• The steps to creating a new license key are..
• Choose a SDK
• Choose a licensing option based on your requirements
• Provide your Billing Information if you've chosen to use a paid license
• Obtain your license Key
30. Adding Tracking Targets
• Create a target on the Target Manager
• OR - Use existing targets from other projects
31. Which Type of Database
• Device Database vs. Cloud Database?
• Device: local, Cloud: online
35. Building the AR Application
• Delete “Main Camera” in Scene Hierarchy
• Drag ARCamera prefab in the Scene Hierarchy
• Vuforia -. Prefabs -> AR Camera
• Import tracking dataset package
• Assets -> Import Package -> Custom Package
• Drag ImageTarget prefab into Scene Hierarchy
• Select ImageTarget, pick Data Set then Image Target
• On AR Camera load target database and activate
37. Add 3D Content
• As a test, create a simple Cube object
• GameObject > Create Other > Cube
• Add the cube as a child of the ImageTarget object by
dragging it onto the ImageTarget item.
• Move the cube until it is centered on the Image Target.
43. Building for Android
• Open Build Settings
• Change Target platform to Android
• Switch Platform
• Under Player Settings
• Edit Bundle Identifier – eg com.UniSA.cubeTest
• Minimum API level
• Build and Run
• Select .apk file name