I trying to display object with opengl es 3. Everything works till i trying to set camera view. When I multiply my vPMatrix with camera matrix and projection matrix object just disapears.
float[] projectionMatrix = new float[16];
float[] vPMatrix = new float[16];
float[] camera = new float[16];
Matrix.frustumM(
projectionMatrix,
0,
-1,
1,
-1,
1,
3,
7
);
Matrix.setLookAtM(
camera
, 0
//where i am
, 0f
, 0f
, 1f
//what i looking for
, 0f
, 0f
, -1f
//where is top
, 0f
, 1f
, 0f
);
Matrix.multiplyMM(
vPMatrix,
0,
projectionMatrix,
0,
camera,
0
);