By Lmy1995
on Wed, 08/25/2021 - 08:06
Hi,
Can I download and activate area target during run-time on HoloLens1? My plan is to save the area targets as assetbundle on a server, the user can choose which area target to download and activate through virtual UI on HoloLens1. Could you provide some cases or codes? Thanks a lot!
Hey there,
Hey there,
Please check the Area Target Test App available here: https://developer.vuforia.com/downloads/tool on how to load/unload and activate/de-activate area target datasets.
Thank you Patrick.
Exactly. If you instantiate
Exactly. If you instantiate after loading the target a game object you should make sure it's a child object of the target, in this case the area target!
Kind regards,
Patrick Scheper
Technical Community Manager
Hi Patrick,
Hi Patrick,
After looking the code in the demo: https://developer.vuforia.com/downloads/tool, I changed my app so it can download the .dat .xml .glb .3dt files from server first and load the dataset according to my need. But I got error in Unity which shows in my screenshots.
Hey,
Hey,
Just to confirm, did you change the release version from 10.x to 9.x?
Secondly, can you highlight over the second error?
Thanks!
Kind regards,
Patrick Scheper
No, I've always used version
No, I've always used version 9.8.11. And I added the screenshot of the second error.
Update:
I have tried to download the files to persistentDataPath and streamingAssetsPath, but I still failed to load dataset.
Hello?Any infos?
Hello?Any infos?
Hi, should I deactivate all
Hi, should I deactivate all the datasets before I load a new dataset?
And any other infos?
Hello?
Hello?
Hi, any info?
Hi, any info?
Vairants of this question
Vairants of this question continue to be asked.
why are you ignoring them.
Just provide a sample
Hey both,
Hey both,
JackAt360XR, not trying to delibrately ignore any question. There are different ways to load area targets, every topic is similar but can be different.
Hi Patrick,
Hi Patrick,
This is the overall procedure:
01. Create an area target by Vuforia Area Creator App on iPad Pro 2021(3rd generation, iOS 14.7.1)
02. Upload the dat/xml/glb/3dt files to Ali OSS(an online server)
And another question,
And another question,
After I create an empty project that is set up with the Vuforia Engine and UWP platform and imported the Unity package, errors were thrown as shown in the screenshots.
Why did this happen and how can I fix it?
Hi there,
Hi there,
Would greatly appreciate if you guys also went over the differences in implementation of downloading the datasets for iOS and Android.
Hi adi, as so far I have
Hi adi, as so far I have developed just for HoloLens1, so I haven't try downloading for iOS or Android.
And I think my test datasets for now are not that big(the biggest one is about 20mb).
It is vital for scalability.
It is vital for scalability.
Can I ask you that how to
Can I ask you that how to change the origin point of the scanned area?
I want to put my hologram on the floor, but I don't know if I can change the area's origin point.
You don't have to change the
You don't have to change the origin point. The origin is either the Area Target origin, the device, or any other target.
Yeah, I can do this in the
Yeah, I can do this in the Unity Editor and build the project to HoloLens.
I think the best way to go
I think the best way to go about it would be to create an empty GameObject with the origin same as your Area Target. Arrange your other GameObjects and make sure they are children of that main one.