Walker
This is a simple walker written in OpenGL with animation done in Maya.
The walker starts standing but can be navigated in space by using the UP, LEFT, and RIGHT directional keys.
If you release the keys the walker will take a few steps and then come to a stop.
Several functions were written in order top get the walker to run.
The first is called 'loadAnimation' and is adapted from Mark Napier's code.
All it does is load a series of OBJs that were exported from Maya into an
array of displayLists. I then wrote two functions, one, 'frameCounter',
which loops through the array, and the other, 'animate', which calls the
displayLists, moves the model in synch with the animation, and makes sure
that it steps through the entire array. There is also a variation of 'loadAnimation'
which allows the walk to loop until the user releases the UP key. A couple of
other fucntions were written, 'move' and 'steer', which simply handle the position
of the model, and 'framerate", which controls how often 'render()' is called.

There are a couple of improvements I would like to makes for the future. One, the
animation is a little out of sync with the movement in a couple of places, most
notably in the transition to stopping animation. This could be fixed by writing a
variation on the 'animate' function that would have no movement assoicated with
it. Other problems might be fixed by adjusting the framerate.
Also, it might be best if the whole thing was thrown into a class of its own.
You can download the JAVA file and the folder of OBJs here. Simply unzip the folder
and drop it in your project file. However, you will need Mark Napier's 'GLmodel'
and 'GLimage' classes for the 'Walker' class to function.