Log in or register to post comments

Target and Scenes Managment

November 8, 2010 - 1:17am #3


I am investigating the QCAR SDK and I need to better understand some points concerning target (markers) and scenes (3D models) management.

If my understanding is correct, markers must be embedded in the application at compilation time and cannot be changed (e.g. downloaded from a server) at runtime, is this correct ?

Second point, I believe scenes are not bond to a particular marker, so they can be loaded at runtime and shown on top of any marker, is this correct ?

These are critical requirement for my project, I need to be sure before going further.



Re: Target and Scenes Managment

November 8, 2010 - 5:12am #2

I do not think it is necessary to include the target configuration files at compile time. The config.xml and qcar-resources.dat files must be present in the APK's assets folder at runtime, by the point at which the tracker is initialized. It might be possible to download these files from a server and place them in this folder before beginning the QCAR initialization. It is important to understand that target configuration files must be created using the Target Management System (http://ar.qualcomm.com/qdevnet/projects), so you will need to preprocess your targets before putting them on your server.

As to your second question, you are correct, scenes are not bound to a particular target. In the code, you simply query which targets are currently visible, and use each target's pose matrix to position whatever content you would like to render.

- Kim

Re: Target and Scenes Managment

November 8, 2010 - 7:35am #1

Sorry, I was completely mistaken here. It is not possible to write to the assets folder in the APK at runtime, so you will not be able to replace the config.xml and qcar-resources.dat files. Those files are not required during compilation, but they are required during packaging of the APK, and cannot be changed afterwards (at least at this time). Sorry for the confusion!

- Kim

Log in or register to post comments