I am trying to show a model form the model view matrix using 3d engine.
I am doing this
mCameraARPosition = Vector3(-modelViewMatrix, modelViewMatrix , modelViewMatrix)
at start my model was on (0,0,0);
and it's look like the model is not stabilized on the center of the image, like in the demo app when I moving the picture.
I also translate the model like the demo app
glTranslatef(0.0f, 0.0f, -kObjectScale); glScalef(kObjectScale, kObjectScale, kObjectScale);
it's seems to improve the stability of the model concerning to the picture. but it's still not enough stabilized on the center of the picture when moving (the picture).
if someone can help me, i need to understand how it work on the demo app. because the base of the teapot is not on (0,0,0), and i am assume that the center of the image is indeed on (0,0,0) on the imaginary world, so why it's look like it's realy sitting on the center of the image even from side look.
and why i need to
glTranslatef(0.0f, 0.0f, -kObjectScale);
if the base position is (0,0,0) and the scale not influence on it.
i hope i made my self clear, because it's hard to explain.