Start a new topic

Get target transformation matrix with Native SDK

To whom it may concern,


We are currently developing an application with the native SDK which relies on the wikitude tracking algorithm. We are able to get the ViewMatrix provided by the getModelView method but it seems that the matrix is not a normalized transformation matrix.

@Override
public void update(RecognizedTarget[] recognizedTargets) {

    recognizedTargets[0].getModelView();
    recognizedTargets[0].getProjectionMatrix();

}

 Could you enlight us about how to get the rotation and the translation of a given target related to the camera as a normalized transformation matrix? Also, I would like to take this opportunity to ask you what is the main purpose of the projection matrix.


Yours sincelery,

Javier

1 Comment

Hi Javier,



what do you mean by not being a "normalized" transformation matrix? Our view matrix should be an affine transformation matrix just like any other.


The purpose of the projection matrix is to transform view space positions (3D) into screen space positions (2D) which can be displayed on a screen. You will find the exact same matrix concept in every other 3D rendering application.


How to use the matrices should be well documented in our sample app. You need to simply perform the following multiplication.


projection_matrix * view_matrix * model_matrix * vertex_position;



- Daniel

Login or Signup to post a comment