Hi, i was trying to add an scene linked to camera according to this explanation: https://developer.vuforia.com/resources/dev-guide/projection-matrix-explained
Acoording to this, i can use a modelviewmatrix setted width setIdentityM and have one object in pos 0.0.1 centered on screen and one unit away from me.
The first thing i can see, is that the modelviewmatrix setted with setIdentity * proyectionmatrix (from vuforia), give me the object 90º rotated.
So i create the modelviewmatrix with that values:
// Position the eye in front of the origin.
final float eyeX = 0.0f;
final float eyeY = 0.0f;
final float eyeZ = 0.0f;
// We are looking toward the distance
final float lookX = 0.0f;
final float lookY = 0.0f;
final float lookZ = -1.0f;
// Set our up vector. This is where our head would be pointing were we holding the camera.
final float upX = -1.0f;
final float upY = 0.0f;
final float upZ = 0.0f;
Matrix.setLookAtM(modelViewMatrix, 0, eyeX, eyeY, eyeZ, lookX, lookY, lookZ, upX, upY, upZ);
Then, i can see the object, but only if is translated in de zaxis beyond 11.0f
Can anyone explain me what happens? Or what transformation i need to do to my modelviewmatrix??
I try to change the eyeZ without success, i can only change these value from 0.0 to -1.0. If i put other value there is no render.