Setting up Vuforia in Unity
In the File menu, click Build Settings
The Build Settings window appears. Click Player Settings
Player Settings window appears. Under XR Settings, select Vuforia Augmented Reality
Right Click on the Hierarchy window. Under Vuforia Engine click AR Camera
A Import Vuforia Engine Assets appears. Click Import
AR Camera will be added to Hieararchy
While AR Camera is selected, in the Inspector window select Open Vuforia Engine configuration
Vuforia Configuration appears
Login to your Vuforia Developer Portal. Under License Manager, click on the app we created in the previous tutorial
Click the license key to copy it
Paste the copied license key to the License Key slot in Vuforia Configuration
Importing our downloaded Database
Double click the database we downloaded
Import Unity Package window appears. Click Import
———————- Repeat for each Image Target start here ———————–
Creating our Image Target
Adding an Image Target
Right Click on the Hierarchy window. Under Vuforia Engine click Image
The Image Target and its preview appears
Select the image for the Image Target
Next, we will learn to select image for the Image Target. Click the ImageTarget
With the Image Target selected, in the Inspector window, click the Image Target and choose your wanted image.
Adding a Cube so that we can test the target
With the Image Target still selected, Right Click on the Image Target, Under 3D Object click Cube
Resize and Move the Cube so that it is on top of the Image Target’s preview. It should look something like this now
Select your Image Target, and Move your Image Target to the side a little bit. This will help later when we have more Image Target, so that it does not overlap each other. You will see later on when you have multiple Image Targets.
Test the Image Target
Press Play and show your image to the camera. It should work now and you will see your cube appears on top of your image.
Repeat this for all your image targets
———————- Repeat for each Image Target ends here ———————–
How it looks like once done
You will now have something like this
Enabling multiple Image Target tracking simultaneously
Select AR Camera
While AR Camera is selected, in the Inspector window select Open Vuforia Engine configuration ‘
In Vuforia Configuration, change the Max Simultaneous Tracked Images to whatever number you need. For an example, I changed it to 3
Final Test – Lets allow see them all together
Press Play and you will see that multiple Image Targets work now.
Thanks for following my tutorial. Do follow my blog and comment below if you have anything to ask or add.