Hi!

I want to calculate the direction to an marker(in time, e.g. marker on 11 o'clock). I have already the cameraPosition and the LookAtVector from the Camera to the marker :

QCAR::Matrix44F inverseModelView = SampleMath::Matrix44FTranspose(SampleMath::Matrix44FInverse(modelViewMatrix)); // CameraPosition/LookAtVector QCAR::Vec3F direction(inverseModelView.data[8], inverseModelView.data[9], inverseModelView.data[10]); QCAR::Vec3F positioncam(inverseModelView.data[12], inverseModelView.data[13], inverseModelView.data[14]); //LOG("camLookAt: %f, %f, %f", direction.data[0], direction.data[1], direction.data[2]); LOG("camPosition: %f, %f, %f", positioncam.data[0], positioncam.data[1], positioncam.data[2]);

Anybody an idea how to calculate an angle to get the MarkerPosition (in time) or has an other idea to get this information in time very easy?

Stephan

Hi kim ,

How can get angle of camera respect to Marker reference frame, in all X,Y,Z direction?