title: Android : OpenGL 2.0 first person camera
body: <p>So I am trying to learn OpenGL 2.0 on Android, I did play quite a bit with OpenGL 1 on iOS and really enjoyed it.</p>
  
  <p>My simple question is about the camera and making a 3D environment where you can move around (First person)</p>
  
  <p>Should I be using </p>
  
  <pre><code>Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX, lookY, lookZ, upX, upY, upZ);
  </code></pre>
  
  <p>to control the camera and where I am in the world (updated on onDrawFrame) , or setting that on the onSurfaceCreated (once) and using</p>
  
  <pre><code>Matrix.setIdentityM(mViewMatrix, 0);
  Matrix.translateM(mViewMatrix, 0, mMoveY, 0.0f, mMoveX);
  Matrix.rotateM(mViewMatrix, 0, mDeltaY, 1.0f, 0.0f, 0.0f);
  Matrix.rotateM(mViewMatrix, 0, mDeltaX, 0.0f, 1.0f, 0.0f);
  </code></pre>
  
  <p>instead which feels like I am rotating the world around me.</p>
  
  <p>I have seen examples where they do either, on OpenGL 1 I used to use GLLookAt</p>