Log in or register to post comments

Pose matrix for framemarkers

August 30, 2012 - 3:06pm #1

Does framemarkers have individual pose matrix for each of the model Q,C,A and R ?

How does

SampleUtils::translatePoseMatrix(-kLetterTranslate, -kLetterTranslate, 0.f, &modelViewMatrix.data[0]);

        SampleUtils::scalePoseMatrix(kLetterScale, kLetterScale, kLetterScale,&modelViewMatrix.data[0]);

        SampleUtils::multiplyMatrix(&projectionMatrix.data[0],

                                    &modelViewMatrix.data[0],

                                    &modelViewProjection.data[0]);

change as the tracked model changes ? How can we find the pose matrix for each of Q,C, A and R model in framemarkers example ?

 

Thanks

Pose matrix for framemarkers

September 10, 2012 - 2:34pm #4

state.getNumActiveTrackables() returns the number of markers found in the framemarkers sample

Pose matrix for framemarkers

September 10, 2012 - 1:21pm #3

Thanks NalinS. That works.  Can I find number of framemarkers being tracked in camera frame at a time ?  How ?

Thanks

 

Pose matrix for framemarkers

August 31, 2012 - 1:50am #2

Hi nrgarach,

Yes it does.

If you look at the following line in EAGLView.mm within the method: renderFrameQCAR() :

for(int i = 0; i < state.getNumActiveTrackables(); ++i)

This loops through each trackable (i.e. each letter), and within each loop is the code you highlighted above.

HTH

 

N

 

 

Log in or register to post comments