Log in or register to post comments

Load Area Target from AssetBundle saved on server

SDK 9.8
August 25, 2021 - 1:06am #1

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!

SDK Version: 

Load Area Target from AssetBundle saved on server

September 7, 2021 - 8:08am #24

Hi Patrick,

Could you please check your email? I have send several emails to illustrate my test status.

Thanks!

Load Area Target from AssetBundle saved on server

September 6, 2021 - 3:59am #23

Lmy1995, thanks for your replies. I am going to take this off the forums and directly email you with some of my follow-up questions since this has become a multi-question thread. I will post any solutions we'd find here for our other developers.

adilaghayev, I am sorry you feel that way. I fully understand that it's vital for scalability. Can you be more clear on what feedback you'd like to pass on? Are you developing for native or Unity (for Android / iOS)? I would love to better understand your issues which I can bring back as feedback to our product management. 

 

Load Area Target from AssetBundle saved on server

September 6, 2021 - 2:39am #22

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. When you download and initialize the Area Target, make that main GameObject a child of your Area Target and set the position/rotation to origin.

You should ask this question in a separate thread if this doesn't solve your problem. 

Load Area Target from AssetBundle saved on server

September 6, 2021 - 2:16am #21

Yeah, I can do this in the Unity Editor and build the project to HoloLens.

But I want to dynamically load an area target and dynamically load a object, the only reference I can use is the origin point. Because I have to set the object's local position which is relevant to the origin point.

Load Area Target from AssetBundle saved on server

September 6, 2021 - 2:10am #20

You don't have to change the origin point. The origin is either the Area Target origin, the device, or any other target. You can put the hologram anywhere within the Area Target in the Unity editor and once the device recognizes and localizes, your objects/holograms will show up where you placed them.

Sorry if I misunderstood.

Load Area Target from AssetBundle saved on server

September 6, 2021 - 1:56am #19

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.

Load Area Target from AssetBundle saved on server

September 6, 2021 - 1:49am #18

It is vital for scalability.

Our datasets are anywhere from 50 to 200 MB. We even have a 500 MB Leica dataset. Another problem comes up when we need to create a NavMesh at runtime for multiple Area Targets and they need some modification because the scans always have some blind spots and obstacles. It is all possible in theory and we would probably come up with a solution sooner or later but the licensing cost and uncertainty doesn't really leave any room for possibilities when it comes to small teams and solo developers.

Just feeling like we are beta testers when it comes to new features such as Area Targets.

Load Area Target from AssetBundle saved on server

September 6, 2021 - 1:15am #17

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). 

But I am interested in you question cause I will probably develope for Android too.  

Load Area Target from AssetBundle saved on server

September 6, 2021 - 1:00am #16

Hi there,

Would greatly appreciate if you guys also went over the differences in implementation of downloading the datasets for iOS and Android.

As we all know, big app download sizes are an issue on both platforms and the Area Target licensing option is expensive as it is, which makes smaller companies and agencies try to work with a single app. This is currently preventing us from committing to a full license.

Thank you!

Load Area Target from local files

September 5, 2021 - 10:55pm #15

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)

03. In my app on HoloLens1, users choose the area to register, then the app download the area's dat/xml/glb/3dt files from the server to a folder whose path is : application.persistentDataPath/areaname 

04. Load and activate the dataset from the folder

 

The load and activate job mainly performed by two method(as shown in the two screenshots):

EnvManager.LoadAreaTarget

AreaTargetDataManager.LoadAndActivateDatabase

These two methods are almost the same as the demo codes provided in https://developer.vuforia.com/downloads/tool

The EnvManager and AreaTargetDataManager are two scripts added to an empty gameobject named "SceneManager"(as shown in the 3rd screenshot).

 

 The files can be successfully downloaded but the dataSet.Load() always failed.

 

Update:

The code of downloading the dat/xml/glb/3dt files are added.

And I really need your help because there are too many questions that our development has been interrupted.

 

Load Area Target from AssetBundle saved on server

September 5, 2021 - 10:41pm #14

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?

The Unity package, Vuforia Engine info, XR Settings and errors are shown in the uploaded pics.

Please help me figure this out.

AttachmentSize
Image icon unity package.png11.97 KB
Image icon vuforia.png66.48 KB
Image icon XR Settings.png82.2 KB
Image icon error1.png51.55 KB
Image icon error2.png49.37 KB
Image icon error3.png49.82 KB
Image icon error4.png50.04 KB
Image icon error5.png50.13 KB

Load Area Target from AssetBundle saved on server

September 3, 2021 - 9:35am #13

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. 

Lmy1995, I cannot make much of your issue as I don't know how you're currently trying to load your area targets. Would it be possible to share your code so that I could have a look at it? If it's confidental, you can send me a DM. I'm sorry that your issue is time critical, it was very busy for me this week, I will make sure to prioritize on Monday.

Both have a good weekend!

 

Kind regards,

Patrick Scheper

Technical Community Manager

Load Area Target from AssetBundle saved on server

September 3, 2021 - 7:46am #12

Vairants of this question continue to be asked.

 

why are you ignoring them.

 

Just provide a sample

Load Area Target from AssetBundle saved on server

September 2, 2021 - 7:44pm #11

Hello?

Load Area Target from AssetBundle saved on server

September 1, 2021 - 11:38am #10

Hi, should I deactivate all the datasets before I load a new dataset?

And any other infos?

Load Area Target from AssetBundle saved on server

September 1, 2021 - 11:27am #9

Hi, any info?

Load Area Target from AssetBundle saved on server

September 1, 2021 - 9:56am #8

Hello?Any infos?

Load Area Target from AssetBundle saved on server

August 31, 2021 - 11:36pm #7

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.

Actually I am really anxious to solve this problem. Can anyone help me? Much appreciate!

AttachmentSize
Image icon error2.png51.48 KB

Load Area Target from AssetBundle saved on server

August 31, 2021 - 3:12pm #6

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

Technical Community Manager

Load Area Target from AssetBundle saved on server

August 31, 2021 - 9:36am #5

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.

What could probably cause this? Can you give me some advice? Thanks.

 

Unity version: 2019.4.8

Vuforia version: 9.8.11

AttachmentSize
Image icon unity error.png75.29 KB
Image icon files.png18.49 KB

Load Area Target from AssetBundle saved on server

August 30, 2021 - 5:58am #4

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

Load Area Target from AssetBundle saved on server

August 26, 2021 - 10:27am #3

Thank you Patrick.
Now I have another question: In my app deployed to hololens1, when I switch to the scene containing an area target, the environment should be tracked. After that, I want to download an object and put it to a specific position.
Can I just load the object and make it a child of the area target gameobject?

Load Area Target from AssetBundle saved on server

August 26, 2021 - 3:46am #2

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.

There's more information how to load large databases either through Asset Bundles or OBB expansion files: https://library.vuforia.com/articles/Solution/building-large-vuforia-engine-apps.html

 

Kind regards,

Patrick Scheper

Technical Community Manager

Log in or register to post comments