Independent Learning Assignment – Using Vuforia and Augmented Reality

Independent Learning Assignment – Using Vuforia and Augmented Reality


Step 1: Go to Vuforia.com and click on DEV PORTAL

 

Step 2: Create an account

 

Step 3: Click Develop, you should see LICENSE MANAGER and TARGET MANAGER

 

Step 4: Click GET DEVELOPMENT KEY

 

Step 5: After clicking on target manager, click ADD DATABASE with type being DEVICE

 

Step 6: Click on the database you just made, then click ADD TARGET

  1. You should be using a flat image to start that has a fair amount of detail. However, even if you think you have a good target, there are times where images with lots of detail and edges are not good for tracking. Be prepared to try multiple targets.
  2. Select SINGLE IMAGE for TYPE
  3. Select your file, you have to use a JPG or it will not upload
  4. Set WIDTH to 1
  5. Give your target an easy to remember name
  6. Once you’ve added a target, make sure it has at least a 4 star rating or else the program will have issues tracking

Step 7: Click DOWNLOAD DATABASE (ALL)

 

Step 8: Click DOWNLOADS near the top of the screen and select DOWNLOAD UNITY EXTENSION (legacy)

  1. Recently Vuforia became integrated with Unity. However, I learned with the previous version and the integration seems to be slightly different. I apologize for providing a tutorial for an older version.

 

NOTE: at this point you now have all the plug in tools you will need to turn Unity into an AR development platform. The next steps will talk about how to integrate Unity and Vuforia together, and how to produce your first AR experience.

 

Step 9: Open a new Unity project

 

Step 10: Delete the camera (it messes with the AR camera)

 

Step 11: After putting both your TARGET and the UNITY EXTENSION are placed either on your desktop or a different file (AND NOT YOUR DOWNLOADS) please drag them into UNITY.

 

Step 12: In project, search for ARCAMERA, and drag and drop it into the scenes hierarchy

  1. Everything we will be adding from now on will be a CHILD of the ARCAMERA

 

 

Step 13: Click on the AR Camera and in INSPECTOR set world center mode to CAMERA, after which click OPEN VUFORIA CONFIGURATION

  1. Back in your license manager on Vuforia’s developer portal, click the development key you got and copy the license code. Paste that in Unity where it says APP LICENSE KEY, you need this to use the AR camera
  2. Under DATASETS check LOAD (target name) DATA and ACTIVATE

 

NOTE: Your AR camera should be working but needs a target now

 

Step 14: Search for IMAGETARGET in your project and place it into the scene

  1. In INSPECTOR set DATABASE to (name of database) and IMAGE TARGET to (name of target)

 

Step 15: You might have noticed that there’s nothing on the image target, to fix search for (name of target) in your project and select it, in INSPECTOR change TEXTURE TYPE to SPRITE (2D and UI) and click outside of inspector to save. This turns your image into a flat texture

 

Step 16: Right click in the hierarchy and create a 3-D cube. Size it and position it so that it sits on top of the texture, then place it as a CHILD to the IMAGETARGET.

 

Step 17: Hit the play button and your program should be working.

No related post

COMMENTS

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.