Independent Learning Assignment – Using Vuforia and Augmented Reality
- by gcook01
- December 10
- in
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
- 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.
- Select SINGLE IMAGE for TYPE
- Select your file, you have to use a JPG or it will not upload
- Set WIDTH to 1
- Give your target an easy to remember name
- 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)
- 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
- 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
- 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
- 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
- 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.
COMMENTS