title: How can i move the camera side to side with OpenGL ES 1.x?
body: <p>I have a Opengl ES 1.x ANdroid 1.5 app that shows a Square with Perspective projection, on the center of the screen.</p>
  
  <p>I need to move the camera (NOT THE SQUARE) when the user moves the finger on the screen, for example, if the user moves the finger to the right, the camera must be moved to the left, it must be shown like if the user is moving the square.</p>
  
  <p>I need to do it without translating the square. The square must be on the opengl position 0,0,-1 allways.</p>
  
  <p>I DONT WANT to rotate the camera arround the square, no, what i want is to move the camera side to side. Code examples are welcome, my opengl skills are very low, and i can't find good examples for this in google</p>
  
  <p>I know that i must use this function: <code>public static void gluLookAt (GL10 gl, float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)</code>, but i dont understand where and how to get the values for the parameters. Because this, i will apreciate code examples for doing this.</p>
  
  <p>for example:</p>
  
  <p>I have a cube on the position 0,0,-1. I want that my camera points the cube. I tryed with this: GLU.gluLookAt(gl, 0, 0, 2, 0, 0, 0, 0, 0, 1);, but the cube is not in the screen, i just donmt understand what im doing wrong</p>