Log in or register to post comments

Not blocking application when first loading

September 7, 2012 - 6:22am #1

Is it possible to not block while loading up image targets?

I have 350 image targets that load when the application starts, this takes a bit of time (about 45 seconds-1min15secs) and it looks like the application is frozen for that time. Is it possible to insert a yeild return somewhere so that while loading it does not look like the application is frozen. (also if you exit while loading image targets they still get loaded in the background, but i dont know if that is causing any problems yet)

Not blocking application when first loading

September 12, 2012 - 1:10pm #6

Ok thanks for the info. You've been really helpfull. The reason I wanted to see about the no blocking thing is because I wish to have a progres bar that shows something is happening and the applicatio is not frozen. I got around that by using GUI plugins from android and using a progress bar that starts before the scene loads and continues until either it reaches 90% when it blocks for a signal from unity part or just loads to 100 and turn on next layout.

As for VWS Cloud Recognition, yea it would be great but unfortunately my boss wants the minimum amount of online possible (eg just download models etc from net, and then let the app run offline).

And again thanks for the info.

Not blocking application when first loading

September 12, 2012 - 1:02pm #5

This is a good case for the new VWS Cloud Recognition service, which will enable you to handle such large datasets without needing to load these when the app initializes. Because you are correct, Unity coroutines are not asynchronous, and unfortunately Unity's asynchronous scene loading mechanics don't work to load datasets, because their reference is lost across scenes.

Not blocking application when first loading

September 10, 2012 - 9:49am #4

@loic_illogika

Yea 350 trackables each of a differnt item, the tracking is weak but it works.

@Nalin S

This is all a single data set, but how would you put it into an asyncronous function, because everything in unity happens in the same thread and I dont know how to add something asyncronous to it (coroutines are not really adding another thread) But i will continue looking.

Not blocking application when first loading

September 10, 2012 - 7:27am #3

Hi raigex,

Are these all in a single dataset or a multiple datasets?

One option suggested by the dev team is that you could wrap the Dataset::load() function in an asynchronous process (background thread).

Can you try this and let me know what happens?

N

EDIT - also you might like to apply for the beta for Cloud Reco 

https://developer.qualcomm.com/mobile-development/mobile-technologies/augmented-reality/vuforia-web-services-inquiry

 

Not blocking application when first loading

September 7, 2012 - 10:14am #2

My god, 350 !

How can you create 350 different images without a doubt about making similar images? I've 6 images, and sometimes the API found another image from what I try to detect.

Log in or register to post comments