How to Use Image Target using Vuforia Engine AR(Augmented Reality) in Unity?(Part-1)

How to Use Image Target using Vuforia Engine AR(Augmented Reality) in Unity?(Part-1)

Hello Everyone,

Today we are going to learn how to use Image target in Unity using Vuforia engine AR.

In the first step, we will create a new 3D project using Unity Hub. Name the project according to your convenience.

createproject.JPG

Unity Setup

In the second step, we will download vuforia engine AR (8.5.9). Go to window<package manager<Vuforia Engine AR, using dropdown menu select version 8.5.9.

window screen-1.jpg

Be patient! It will take some time to load the packages.

vuforiapackagemanager.JPG

After Successfully installing Vuforia Engine AR 8.5.9, go to this website: developer.vuforia.com

Vuforia Setup

When you landed on the homepage of the given website

  1. Register yourself
  2. verify your e-mail
  3. login

After you got logged in click on Develop option, then you will land on this page:

vuforia license page.JPG

There are two options, the first one is License Manager and the second one is Target Manager.

License Manager: It provides and manages the license keys which are required when you are developing or deploying the app.

Target Manager: It is a web-based tool that enables you to create and manage target databases on vuforia's Developer portal.

How to create a License Key

  1. In the License Manager, click on Get Basic.
  2. A new page will open like this

creatinglicense.JPG

  1. Enter a name for the license at your convenience. (I prefer to name the license after the project name only).

  2. check the checkbox, and click on confirm.

  3. Your license key is added to the license manager.

license added.jpg

When you click on your license, this page will appear:

licensekey.jpg

The highlighted part in red is the license key.

How to create a Image Target

On the right of License Manager, there is another option Target Manager. When you click on the target manager, this page will pop up:

targetmanager.JPG

1.On the top right corner of the page there is an Add Database button , click on the button. This page will Pop up:

createdatabase.JPG

2.Click on device and name your database.After this your database will show in the Target Manager, like this:

database created.JPG

3.Click on the Database you created, something like this will appear:

add target.JPG

4.Click on Add Target

5.A pop up will open , asking for different inputs

  ```
  a.In Type select single Image
  b.choose a image according to your choice.
  c.In unity measurements are counted in meters.So we if you have a A4 size
     printout or image then its size will be (0.21 x 0.29) meters. so you                      
     have to enter the larger side measurement. So we will enter 0.29 in 
     the Width option.
  d. At the last name your target of your own choice.

```

At the end it should look like this:

filled form.JPG

6.Now click Add.

7.After Traget is uploaded, Select the image target and click on the download database.

[NOTE: The Augmented Rating of the image should be 4 stars or more.]

rating.jpg

8.A .unitypackage is installed .

Thats all for Part-1 , we will see rest of the topics in Part-2.

Did you find this article valuable?

Support vnsh kumar by becoming a sponsor. Any amount is appreciated!