Log in or register to post comments

Disabling DataSets (Unity 2018.4 and Vuphoria 8.8.3)

August 2, 2019 - 11:01am #1

I'm trying to upgrade my project from Unity 2017 to Unity 2018 in order to have the 64 bit functionality the android build needs.  There have been a lot of changes to the way Vuphoria handles image targets that is making this extremely frustrating.



I have a set of image targets that I use to align my assets for cloud recognition, because there is no way to pull the cloud targets into unity.  Before I could leave this data set unchecked and it all worked fine.  Now, vuphoria loads this data set and creates a whole bunch of 'empty' image targets when the scene loads.  This interferes with the cloud targetting.



I want to turn this off entirely.  I don't want vuphoria creating image targets other than those I explicitly place.



I found this thread that seems to be what I want, but the soloution isn't working;

https://developer.vuforia.com/forum/model-targets/deactivate-database



TrackerManager.Instance.GetTracker<ObjectTracker>() returns null if I do it on project load before the Vuphoria stuff is initialized, and if I do it after I enter the scene where I have the AR CAM set up, I get the error "Could not deactivate the dataset" (which might be because it's auto-instantiating all the targets)



Please help.  I literally needed this done yesterday, as Android requires apps to be explicitly 64 bit compatible.

Disabling DataSets (Unity 2018.4 and Vuphoria 8.8.3)

August 6, 2019 - 6:03am #3

Hi,

I researched the issue a little bit more and found below:

Vuforia Engine device databases are imported into a Unity Editor project via: Assets->Import Package->Custom Package... Once imported, Vuforia will not load any device databases upon initialization. Automatic device database loading and activation always happens together, and only on scene start if the scene contains a target from an imported device database.



This can be prevented by disabling the target and only enabling it after scene load.

For information regarding the loading and unloading Vuforia device databases at run time, please review to the following APIs:

https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1DataSet.html#aa10b2eaa09ff407163063ca42a4fbd0e

Additionally, you can refer to our 8.3+ Vuforia Engine Core samples (free on Unity's Asset Store) for reference code: Assets/SamplesResources/SceneAssets/ModelTargets/Scripts/ModelTargetsManager.cs

Finally, here are some library articles that provide additional reference code for similar use cases:

https://library.vuforia.com/articles/Solution/How-To-Work-with-Device-Databases (see towards bottom of article)

https://library.vuforia.com/articles/Solution/How-To-Access-and-Modify-Targets-at-Run-Time.html

Thank you.

Vuforia Engine Support

Disabling DataSets (Unity 2018.4 and Vuphoria 8.8.3)

August 5, 2019 - 7:18am #2

Hi,

Unfortunately I didn't understood the entire picture. Could you please help me with the below?

- from which version did you migrated to 8.3.8?

- Could you please elaborate on the part with empty image targets that you used to align your assets?  -> if you are not using them ( not active), would you be able to swap them out with something else?(like primitives)

- Also could you please let me know what you mean with interfering with cloud targets? are they also being picked up by Cloud Reco?

Thank you.

Vuforia Engine Support

 

 

Log in or register to post comments