Hi all , Nice to meet you . I have a doubt in the Image Targets app . I have used the following code to calculate the distance .
QCAR::Matrix34F pose = result->getPose();
QCAR::Vec3F position(pose.data[3], pose.data[7], pose.data[11]);
float distance = sqrt(position.data[0] * position.data[0] +
position.data[1] * position.data[1] +
position.data[2] * position.data[2]);
The fact that you draw a 2D image (instead of a 3D model) does not impact the Vuforia tracking;
however, what I am saying is that if you render a 3D model, you can get an immediate visual feedback on the distance (as Is aid, if Vuforia reports a higher distance, then your 3D model will look farther away, and thus smaller...)
So, it would be good to re-enable the 3D model just to see if you "visually" can perceive the difference (smaller/larger teapot) when using different lighting conditions.