"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Get Trackable Angle

Is there a way to get trackable angle such as in Euler angle? After the trackable is detected if I change the angle of the device relative to the trackable I want to know the angle between camera and trackable.

AlessandroB

Wed, 05/11/2016 - 06:38

Once you get a Trackable Pose matrix, you can extract its column vectors, which represent the 3 oriented local axis (X,Y,Z) of your Trackable reference frame, with respect to the camera reference frame.

You can then compute the angles of thoese axis using basic trigonometric maths.

vigneshjeyaraj2

Thu, 05/12/2016 - 06:57

I got the Matrix using the following code

Vuforia::Matrix44F modelViewMatrix = Vuforia::Tool::convertPose2GLMatrix(result->getPose());

and I did the following code

AlessandroB

Thu, 05/12/2016 - 06:00

The modelViewMatrix.data  is an aray of 16 floats that contains the values of the pose local axis that I was referring to;&n

Mujahid999

Fri, 09/16/2016 - 14:36

Vuforia::Vec3F cameraPosition(cameraPosX, cameraPosY, 0);

to

 

Vuforia::Vec3F cameraPosition(cameraPosX, cameraPosY, cameraposZ);

 

may work.