Hi.
We use an external 3D engine to display a custom model on top of the marker. To affix the model on the marker, we use the getPose() method in native code to return us a float array that we use to set our camera matrix. This works perfectly except for on thing, if we move our device around our marker, the model always translates a bit.
So if we look at the dead center of our marker, our model is in the center. If we move our device a bit to the left (so that the left boarder of the marker is in the center of our camera) the model is not anymore at the center of the marker, but a bit to the left. This is not the case with the supplied samples (i.e. Teapot in ImageTargets) and independent of the QCAR version (1.0.6 or the 1.5 beta).
Any idea why that is? I guess we need to add some kind of "compensation" on the pose matrix, but depending on which values?
Hi, if you search the Forum, you will find that people have integrated various rendering engines with Vuforia, from Ogre (c++) to Irrlicht, to jMonkey, jPCT and min3D on Java;
if you plan to code primarily in Java (at least for the rendering part), one option used by many developers on this Forum is JPCT-ae; there is also a good tutorial on how to integrate it in Vuforia (step-by-step):
http://www.jpct.net/wiki/index.php/Integrating_JPCT-AE_with_Vuforia