I am a beginner of openGL, my question is that I am going to create a scene and initially viewer is at (0,0,0) and looks at (0,0,1), suppose Y is vertical axis, I should move viewer parallel to the XZ plane, I don't know how to make viewer move forward, backward, left , right and rotate using gluLookAt(). I am not sure how to compute the arguments used in gluLookAt(), would any one like to give me some help?
Thanks a lot
Start Free Trial