Hello pro, i want to ask a question how to load trackable dynamically. As you know, the trackable has 2 files XML file and .dat file included in asset of apk. How can i add more trackable into this asset of apk? For example, delete old xml file and .dat file, copy new these files into without traditionally recompiling and installing a new apk. I want to do i dynamically. Or is it existing a method that it doesn't need to place these files into asset, can be placed in sdcard?
I am very appreciated with your help as soon as possible.
Thanks
- Sort Posts
- 13 replies
- Last post
Question about loading trackable dynamically
Re: Question about loading trackable dynamically
+1 for this feature again.
Any update on when this feature might make it into a release, I remember this being requested coming up to a year ago.
Is there some reason technically that this isn't as simple as changing the initialization of the API to take in an absolute path to a directory these files reside in?
cheers,
Lee
Re: Question about loading trackable dynamically
Re: Question about loading trackable dynamically
There is currently no way to change the trackables without uploading a new version of the app. We are working on this.
You can change the models at runtime, you have full control over model rendering. We can't help with the specific code, but you should be able to load models from the sdcard or from the internet. All you need are arrays to feed to OpenGL, see the renderFrame method.
- Kim
Re: Question about loading trackable dynamically
Re: Question about loading trackable dynamically
There is currently no way to change the trackables without uploading a new version of the app. We are working on this.
You can change the models at runtime, you have full control over model rendering. We can't help with the specific code, but you should be able to load models from the sdcard or from the internet. All you need are arrays to feed to OpenGL, see the renderFrame method.
- Kim
Thank you, Kim!
Also the texture, that is in the asset folder? the assets folder is not modifiable at runtime.
@tomwilson Thanks :)
Re: Question about loading trackable dynamically
The texture loading code that we provide in the samples is only an example, you have full control of how you feed texture bitmaps to OpenGL. I suggest looking at our code as a starting point and adapting it to load the images from another directory (e.g. the sdcard).
- Kim
Re: Question about loading trackable dynamically
I hacked a way to do this on iOS, see here:
http://stackoverflow.com/questions/8160863/loading-markers-from-outside-the-app-bundle-in-ios-with-qualcomm-ar-qcar
Not sure if this would get through the app store review process, however.
Hello Tom,
Thank you so much for sharing this with us, but you think you could maybe be a little more detailed in your steps of how you archive this?
i'm having the same problem, i need to be able to update my content without having the user download the app every time and im really interested in this that you did but unfortunately i'm not following you.
Thank you so much in advace!
Best regards,
-Brian.
What you are describing is not currently possible. The .dat and config.xml file are dedicated to the apk and can not be loaded or linked to at runtime. You have to build them into the APK.
This is a popular feature request, and apparently the QCAR team is looking into it. So we may see this capability in the future.