Log in or register to post comments

projectionMatrix issue

August 15, 2015 - 1:25pm #1

Hello i am trying to integrate some parts  off the domino sample into the imagetarget sample. 

when i debugged my app i saw a difference in the modelviewmatrix came from vapp.projectionMatrix; in the imagetargetsample

and [QCARutils getInstance].projectionMatrix; in the domino sample. 

Is there a reason why there is a difference  between  the value from the forth and fifth pocket off the data array. I looked in the defnitions off the
the projectionsMatrix in both projects but i cant understand why or is it not important ?

Maybe somebody can explain me why, thxx

// Cache the projection matrix

const QCAR::CameraCalibration& cameraCalibration = QCAR::CameraDevice::getInstance().getCameraCalibration();

_projectionMatrix = QCAR::Tool::getProjectionGL(cameraCalibration, 2.0f, 2500.0f);

 

//domino

 

(QCAR::Matrix44F) projectionMatrix = {

  data = {

    [0] = 1.96720004

    [1] = 0

    [2] = 0

    [3] = 0

    [4] = 0

    [5] = -3.4972446

    [6] = 0

    [7] = 0

    [8] = 0

    [9] = -0.00277777785

    [10] = 1.00160134

    [11] = 1

    [12] = 0

    [13] = 0

    [14] = -4.00320244

    [15] = 0

  }

}

 

imagetarget

(QCAR::Matrix44F) projectionMatrix = {

  data = {

    [0] = 0

    [1] = -1.96720004

    [2] = 0

    [3] = 0

    [4] = -3.4972446

    [5] = 0

    [6] = 0

    [7] = 0

    [8] = 0

    [9] = -0.00156250002

    [10] = 1.00160134

    [11] = 1

    [12] = 0

    [13] = 0

    [14] = -4.00320244

    [15] = 0

  }

}

 

 

projectionMatrix issue

August 19, 2015 - 10:54am #3

thanks !!!!!

projectionMatrix issue

August 18, 2015 - 8:40pm #2

It might be difference between portrait and landscape modes. See this post:

https://developer.vuforia.com/forum/ios/projection-matrix-creation#comment-2044882

Log in or register to post comments