"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Dynamically Loading and Activating Datasets

Hello all,

With the launch of Model Targets and its restriction of only a single Model Target dataset being activated at a time, we have seen an increase in the number of questions related to loading and activating datasets programmatically.

I've attached a script to this post that provides two examples for doing this. One function within this script will de-activate all currently active datasets in your project and then activate the dataset given in the function's signature. The second function will directly load and activate a single dataset without de-activating any others. The script contains additional information about the process via in-line comments.

Please note that the file is attached as a .txt. You'll need to change the extension to .cs in order for it to work within your project.

Also note that the provided script is only meant as an example and not a comprehensive guide. For additional information on loading and activating datasets, please refer to the library and api documentation.

Thanks,

Vuforia Support

This helped me as even with having only one model target (and no other targets, not event the mars sample even present in the unity project) nothing got activated (licence, latest tools, everything checked). 

Only activating on load with your script helped :/.

Hi, is there anyone that has been able to replicate this code for Vuforia 10? I am new to vuforia and struggling to turn this example code into Vuforia10.
I'm having a lot of trouble trying to scale my project up from 1 model target to 3 (or even 2) to be detected one at a time.

Hello,

Untrained Model Targets only supports the detection and tracking of a one (1) Model Target at a time: https://library.vuforia.com/model-targets/how-create-model-target

Thank you for your help! I have gone over to using Advanced Model Targets, but still it doesn't seem like it is possible to recognize several model targets even though I just need to recognize one at a time.

Hello,

[quote=anagrams]

I am wondering if maybe there is something I am missing in this definition of what is possible: What is the difference between tracking and detecting?

[/quote]

Hello,

Unfortunately, it doesn't sound like the current implementation of Advanced Model Targets can meet your use case. When saying this, I'm referencing the following article: https://library.vuforia.com/objects/model-targets-api-overview

Hi

I'm looking for a solution to load a dataset which was createt with the Model Target generator dynamicly at runtime from a webserver.

Is there any Example which solves a similar problem?

I'm using the unity SDK v.10.2.

Thank you in advance.

medabit

Fri, 11/05/2021 - 16:20

In reply to by pbfhnw

Hello @pbfhnw,

Vuforia Engine provides APIs for this very use case, but there is currently no working sample code that we provide that demonstrates it.

Attachment