This is a horribly basic question I know (!) but how do I create and import an AR marker into Unity? I know I am meant to do it through the Vuforia Marker Manager page. I have created a Target Database and I have downloaded the database, but how do I get the marker to display in Unity?
Also: what exactly is a Target Database? Is that another name for 'marker'?
There are a couple things that you need to do before getting this to work.
Firstly, I noticed you mentioned creating a Target Database on the Vuforia website, but have you actually added any markers to it? Markers are the actual AR images that will be scanned. A Target Database is a collection of markers that can be used simultaneously in your Unity application.
Once you have your markers uploaded they should have a 2-4 star rating as shown in the picture
After downloading the database as a UnityPackage you have to import it into Unity along with the Vuforia Unity SDK.
If you are still having trouble getting an example scene running within Unity you can download a sample scene at the previous link.
To answer your question specifically, yes your Marker is your Target.
So what you need to do is:
Go to License Manager.
Add a License Key
choosing None as your License plan.Now go to Target Manager. Create a
Database
and add the license for it from the drop down.Add Target, and select from your computer the Image that you want to be the Marker, and upload it.
Once the status of the Target changes to active you can click Download Database and make sure you click For UnityEditor. This downloads a
.unitypackage
Now inside Unity, go to
Assets
>Import New Assets...
and locate to the.unitypackage
you downloadedThis is how you import your database.
Now ideally to work with AR, you would use the
AR Camera
, which is located in yourAssets
Bar inQualcomm Augmented Reality
>Prefabs
. DragARCamera
onto your scene.With the
AR Camera
selected in theHierarchy
look at theInspector
tab. You'll seeData Set Load Behavior
. Under that you SHOULD see the name of the.unitypakage
you imported ealier. Check the name as well as make itActive
.Now in
Qualcomm Augmented Reality
>Prefabs
you should also seeImage Target
. Drag that onto the screen as well.With the
ImageTarget
selected inHierarchy
look at theInspector
there should beImage Target Behaviour
Fill in as follows
Now you may work around the Image Target as per your app requirement.
Hope this helps you. Please feel free to ask me if anything.