Log in or register to post comments

Switch between ModelTargets at runtime

April 7, 2020 - 8:14am #1

Hi guys!

I'm not so familiar with Vuforia and therefore have a couple of questions that I cannot answer myself by consulting the API documentation.


The first problem that I have is, that I want to have multiple ModelTargets inside a single database. Is that possible? If so, how?

My next question, and also the more important one, is, how do I switch between ModelTargets at runtime? The idea is, that the user sees one specific guide view and then has to find that object and track it. Once he has done that, I want my application to change to the next ModelTarget - and thereby also to the next GuideView - so that users and Unity know what Model to look for now.

I succesfully managed to switch between GuideViews at runtime, but I cannot seem to switch ModelTargets at runtime. I hope someone can guide me into the right direction.


Best regards.

Switch between ModelTargets at runtime

August 13, 2020 - 2:46am #3

Hey, I am working on vuforia with Unity. I have created 3 model targets for 3 different car features and separately importing three without training database working fine with guide view. So after taht I created a single database with  3 model targets in it and trained the database and imported the unity package out of it. But that dataset is not bale to recognize even a single model that it was doing before.Can u please look on this its urgent..If u help me this It would be great!!!!!

Switch between ModelTargets at runtime

April 8, 2020 - 1:49am #2


Yes it is possible to store several MT in the same database, to be more specific in an Advanced MT db.

More info here: https://library.vuforia.com/content/vuforia-library/en/articles/Solution/trained-model-target-datasets.html

In regards to your second question, using the 360 recognition range and storing several models inside of the db, Vuforia Engine will recognize the model you are showing, without any additional hint like GuideView.

I would recommend to go over our Core Sample app available in the Unity AssetStore. In the Model Target scene we have Standard db and Advanced db. The Advanced db contains 2 models and based on the model you put in front of the camera, it will automatically detect the corresponding model.

Let me know if you have additional questions.

Vuforia Engine Support

Log in or register to post comments