I'm experimenting with the MD2 Animation tutorial from www.gametutorials.com and have this object called g_3DModel, any idea how to rotate it, move it, etc?

04-05-2003

jdinger

Use glRotate3f(), glTranslate3f(), etc.

04-05-2003

RoD

glRotate*() and glTranslate*() functions modify the location of objects in the world relative to a stationary camera. So instead of moving the actual camera around the world, it will move the world around the camera. If you wanted this same effect but on the camera you would use the gluLookAt() function. The following code is an example from my book to help explain this more: