Log in or register to post comments

Use many targets in Unity project

May 3, 2013 - 11:50pm #1

Hi, I have the following problem, I am using cloud recognition and I'm trying to add 2 image target within a project of unity, to do the console tells me: Duplicate trackables detected: "". Only one of the trackables and its respective Augmentation will be selected for use at runtime - that selection is indeterminate here.

How could I use multiple target in the same project, there is some documentation that indicates how?

Use many targets in Unity project

April 15, 2017 - 10:50pm #13

Hi,I have met the same problem like you,have you solved the problem and  could you give me some suggestion?

Use many targets in Unity project

January 26, 2015 - 8:09am #12

Hi, anyone can tell me if it's possible to attach different image targets to different positions of one 3D model?


Use many targets in Unity project

May 12, 2013 - 12:12am #11


you don't need to have your models on a server;

Cloud Reco uses the Cloud servers to store and recognize image targets, but their associated 3D models (augmentation) are not stored there;

also, the fact that you show 3D models (or other type of augmentation) is completely an application-specific element (not related to Cloud reco);

for instance, you could create a Cloud reco app that just shows always the same teapot 3D model for any target recognized (just as esample)


For User Defined Targets, you can have a look at the UserDefinedTargetEventHandler class in the sample (which implements the IUserDefinedTargetEventHandler interface);

that's the place where you can hook your code to show any 3D model you like;

about attaching 3D models dynamically, it might be helpful to read this small tutorial:



Use many targets in Unity project

May 11, 2013 - 2:47pm #10

I'm trying to do something similar: to show different GameObjects for different user-defined targets. Is it only when you're using the Cloud Recognition that you have to have your models on an external server?

In the User-defined-targets example, every new target is augmented with the same teapot. What should I do to let the user define new targets which have different augmentations?

I'm familiar with the Custom Event Handlers, but I'm afraid I do not understand the Vuforia framework completely yet.

I hope someone can help me with this.

Use many targets in Unity project

May 11, 2013 - 2:02am #9

Hi, using Device Database, you can use up to 100 active targets;

however, you can only detect and track up to 10 targets simultaneously in your camera field of view (and that's controlled by the Mak Simultaneous Image Targets setting)


Use many targets in Unity project

May 11, 2013 - 12:35am #8

Ok, other question. How many image targets i can use in a Unity project with  QCARBehaviour  (whitout cloud reco) which is the limit???

Using Device Database (non-Cloud) and setting the Max Simultaneous Image Targets, how many Database i can see in AR simultaniusly???

Thanks for all the support

Use many targets in Unity project

May 4, 2013 - 2:13pm #7

the metadata associated to the target is just a string, i.e. a blob of text;

in your case, this could be simply the URL where the 3D model is located, for example it might look similar to something like this:


Then, you will need to code something in C# to be able to download that model when your image target is recognized;

specifically, if you look at the code in CloudReco sample, you will find a script called CloudRecoEventHandler.cs (which is attached to the CloudRecognition object, which you can find in your scene view)

If you look at the code in CloudRecoEventHandler.cs, you will find a function called OnNewSearchResult; that's the function which is called by Vuforia when a target has been recognized on the Cloud, and that's the code where you can obtain the Metadata associated to the recognized target;

the metadata is in practice simply obtained with this code:

string metadata = targetSearchResult.MetaData;

For example in your case, the metadata will be a string like: "http://my_server/my_models/my_model_001.unitypackage" (assuming you had uploaded that metadata when you created the image target in the Cloud database)

Once you have that metadata, you can use such string to download that model from the server.

At this point you will need some code to perform such download operation; the best is to follow the tutorials in the Unity website about how to use (download) AssetBundles:


I hope this helps.

Note: other approaches might be possible as well, so you can also take different strategies if you like (mine is just a suggestion)




Use many targets in Unity project

May 4, 2013 - 1:29pm #6

i'll try to do this. just one question, the metadata file, just will be a url where i have the 3d model? or I must use some code or logic for that??? (C# or JavaScript)


Use many targets in Unity project

May 4, 2013 - 1:00pm #5

Thanks for claryfing your scenario;

actually, Cloud Reco could fit quite well with what you describe (and you can certainly have more than 100 targets);

however, you will need to implement some 3D model loader in Unity, for instance, you could host your 3D models on a server;

then, when uploading your images to the CLoud Database, you could store the URL of the correspongin 3D model (for each image) in the metadata associated to the target;

in your application then you could read the metadata of the recognized target (so to get the URL of the 3D model) and download the 3D model from the server.

The best way to download 3D models from a URL is to use AssetBundles (which is a Unity Pro feature).


Use many targets in Unity project

May 4, 2013 - 1:18am #4

Yes, I used QCARBehaviour with more than two targets.
I do not understand, if I need to make a catalog or magazine in RA and each page be a different image
target in the same file or unity project, how could I?

I thought with Reco Cloud could use more than 100 image targets,


Thanks Allesandro

Use many targets in Unity project

May 4, 2013 - 12:57am #3

I'm not trying to see two image target Simultaneously, I'm trying to have a image target with 3D object, and another target with other object. and when I see with the camera the printed image, recognize one or the other, not both at the same time. depending on to look.

For example have 150 image targets and 150 3D objects like a content for every image target, all in the same unity project, when the camera target approach appears any content assigned to that image target.



Use many targets in Unity project

May 4, 2013 - 12:34am #2

Hi, Cloud Reco currently supports one target at a time, so you won't be able to augment 2 targets simultaneously;

however you can have multiple targets detected (provided that these correspond to different images) using Device Database (non-Cloud) and setting the Max Simultaneous Image Targets parameter to 2 (or more) in the QCARBehaviour (with the inspector)


Log in or register to post comments