If you are working with unity 2019 versions and facing problems with setting up Vuforia SDK for marker based reaity, this blog is going to help you out!
Here is an overview of how to set up Vuforia in Unity 2019.
Step 1 :
Create a new project in unity 3D.
Step 2 : Select "Windows" and then "Package Manager".
Make sure you have selected "all packages" before moving to the next step .
Caution : If you are familiar with Unity 3d and trying to import Vuforia like other version , you may end up with an error!
This is because in 2019 version , Unity has provided build in Vuforia.
Just install it from package manager and you are ready to go :)
picture
Step 3: Search "Vuforia Engine AR" in the package manager and then CLICK on "install".
It will import the package in your project.
Step 4 : Get back to your scene . Right click on hierarchy panel .
You can see "Vuforia Engine" in next panel, click on it and select "AR Camera".
AR Camera in the hierarchy will appear .
IMPORTANT : Don't forget to turn *"main camera" off *. It may cause you unwanted disaster later:|
PRO TIP: Keep saving the scene after new changes, so that even if unity crashes, you can continue your work from the same point.
Thank me later :p
Step 5 : Select "image" by clicking on hierarchy panel > "Vuforia Engine" > "Image".
Step 6 :Now its time to get to your browser and build your own database ( Image target)
Search Vuforia developer > Develop > Target Manager
Create an ID if you don't have one or else sign in .
Step 7: Creating a license: Click on develop> license manager >
get basic > type you name > confirm .
A new license will appear, copy it and get back to your unity scene .
Step 8: Select AR Camera and click on "vuforia engine configuration" in the inspector panel.
Step 9: Click on "Vuforia Engine Configuration" and paste the license .
Caution: Don't click on add license. Just paste the license and close the panel.
Step 10 : Get back to your browser developer.vuforia.com and
click on develop> target manager > add database .
Add name of your image target and click on "create".
Your database will appear in the list , Click on it .
Add target > choose your file which you want to use as your image target > give a name to your image target and choose width =1.
When everything is set , click on "ADD".
Step 11: download the database and drag and drop it to your unity scene and import it .
IMPORTANT : Don't forget to click on unity editor before downloading your database.
Step 12: Click on "image target" in hierarchy> "database" in the inspector panel.
Your imported image target will appear as the option.
Step 13: Once you will select your database, it will appear in your scene , Adjust the AR camera .
Step 14 : Place your object in front of image target .
IMPORTANT: Don't forget to make the object child of your image target by simple drag and drop.
Step 15 : You are ready to go! Just click on play .
Once you have added an image to your target, you can create an augmented reality experience by adding 3D models, animations, or other game objects to your scene.
Thankyou!
Don't forget to give a thumbs up 👍.
See you in next blog 😄.
Top comments (1)
I am going to follow these steps and become AR/VR developer.