I found that line of code, proposed in
http://developer.android.com/resources/tutorials/opengl/opengl-es20.html#projection-and-views
, is not correct:
Matrix.setLookAtM(mVMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
Due to -3 in the argument eyeZ triangle does not draws.
For example corresponding line in
http://developer.android.com/resources/tutorials/opengl/opengl-es10.html
:
GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
If we change -3 to -5 in OpenGL ES 2.0 tutorial, triangle is drawn
fine.