I'm using dynamic content in my app, so i need to load world from file system instead of assets.
If i use URI file:///data/data... i see that ArchitectView loaded file:///android_asset/file:///data/data instead.
If i give simple /data/data.. path then ArchitectView loaded file:///android_asset//data/data.
How should i call architectView.load to point to app cache dir or some absolute file system path?
Thanks,
Ernest
A
Andreas Fötschl
said
almost 10 years ago
Loading architect-world is currently only supported when files are stored in asset folder or a webserver. We are working on this feature, unfortunately there is no "workaround" for this available.
Kind regards, Andreas
P
Peter Gledhill
said
over 9 years ago
Just to say I could really do with this functionality too.
Cheers
A
Andreas Fötschl
said
over 9 years ago
Hi Peter!
Some good news for you: Upcoming SDK version will support the feature you requested. Stay tuned, Wikitude SDK 3.2 it will be available very soon in the download section. You can then open a World using "file:///...", "http://" or even just "index.html" to open a World from your project's assets-folder.
Kind regards, Andreas
R
Roberto Viola
said
about 9 years ago
I'm using this feature but i think there is something wrong.
I'm working on android and I've copied all my assets to /data/
As written in one of my previous posts it is therefore not recommended to use absolute paths in your AR experience, also note that "assets" may be a keyword in WikitudePlugin and be internally replaced by "Android's assets folder path", so try using some other folder-name.
I know that i don't retrieve automatically the path, but it's not the point ( i will add obviously ).
The issue is about the impossibility to load AR objects when they have been moved to the sdcard. AR World works, AR objects doesn't.
I've tried with different folder name but the result is the same.
If i don't move the project on the SD all works flawlessly.
I'm using wikitude from a phonegap: could it be the issue?
Are you sure it isn't a bug on the sdk? (It's a fresh feature i guess)
EDIT: i found in the release notes of version 3.2 this line
Images can be loaded from any source
But it's avaiable only for images? Because i moved all my asset to the sdcard, and my error is releated to a sound, maybe it's the issue? Let me know, it's very important: all my current project is based on this feature.
Thanks in advance.
A
Andreas Fötschl
said
about 9 years ago
Hi Roberto!
We'll having a look at your finding. It would be great if you can provide us an html/js where issue is reproducible, so we have something to provide devs to start with and test against once fixed, in case it is a real SDK issue.
Sending the sample sources to android (at) wikitude.com is very appreciated.
Thanks in advance.
R
Roberto Viola
said
about 9 years ago
Ok, i've already sent you and email with the sample project.
Let me know how the test proceed.
W
Wolfgang Damm
said
about 9 years ago
A fix for this should be in the version we will be releasing next week. Just check our website and the developer newsletter and please test with it once it is avaiable, reporting back any issues. Thanks again for reporting the issue.
Ernest Poletaev