moving around

I want to be able to do translations so that, regardless of the actual viewing direction, the user can move backwards, forwards, left, etc wrt the scene, rather than the axes. How can I achieve this?


gametutorials has an excellent section on implementing a camera in OpenGL. it’s wrapped up in a nice little class, and an excellent learning resource for implementing a first-person camera in your application.