Tutorial OpenGL ES 2.0 problem

25 views
Skip to first unread message

tbl

unread,
Jan 5, 2012, 7:15:34 AM1/5/12
to android-platform
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.
Reply all
Reply to author
Forward
0 new messages