Hello folks!
I been stuck in this for some days now so I hope you can give me a hand to achieve it or to let me know that that is not possible right now.
My work flow:
- Upload the *.xml and *.dat files from a model target to a server.
- Download it to my Unity app.
- Save them to my persistentDataPath.
- Load the *.xml and *.dat files from my persistentDataPath.
- Load my Dataset and instantiate some content for it.
First, I've read some examples about how to load the data set at runtime :
https://developer.vuforia.com/forum/model-targets/dynamically-loading-and-activating-datasets
https://developer.vuforia.com/forum/model-targets/multiple-model-targets
https://library.vuforia.com/articles/Solution/How-To-Access-and-Modify-Targets-at-Run-Time.html
https://developer.vuforia.com/forum/faq/unity-load-dataset-setup-trackables-runtime
Based on the examples, I was able to load the dataset I downloaded without console errors but the editor doesn't show the information about that specific model target Behaviour. It just comes empty.
I just notice that all the solutions works like a charm when the data set I downloaded also resides inside my unity Assets folder at the moment I build the app but what I was looking for is the capacity to load data sets that are not present at the moment I made my build.
I suspect that Vuforia can correctly load the data sets only if it was inside Unity at the moment I build my app but it can't load a dataset that hasn't been present at the build moment.
Here are a picture when I load the same dataset and there was also present at the build moment. Everything is on place.
So, is there a way to achieve this?
Maybe I need some extra files besides the *.xml and *.dat?
Or even better, are out there a model target service on the cloud? (Like the cloud service for image targets).
Thanks in advance.
Hello,
Device databases only appear in the Unity Inspector when they been imported via Assets->Import Package->Custom package... This places the .unitypackage contents in Assets/StreamingAssets/Vuforia folder of your project, and is the only place our Unity extension looks for these assets.
I disagree with your assessment. The articles referenced are specific to the use case of being able to dynamically load device databases during runtime, as downloaded from a CMS. This has been successfully implemented in many commercial apps that I'm aware of.
Here is an article about loading datasets from an OBB file. Fundamentally, the use case is the same as what you're trying to achieve.
https://developer.vuforia.com/forum/unity/load-dataset-android-split-binary-obb
Currently, the Vuforia Engine SDK's Cloud Recognition service does not support Model Targets.
Thanks,
Vuforia Engine Support