Wednesday, February 27, 2008

Walking animation

I've been working on the walking animation for my characters and created a short video which I uploaded to youtube to demonstrate:



I've not yet textured the model (just a standard checkerboard texture) but the animation is quite smooth and I'm happy with the polygon count (currently 144 polygons). The model is quite square looking around some areas but this shouldn't be too noticeable in-game as the camera will be viewing character models from a fairly long distance.

The models are going to be animated in-game by using several key frames and linearly interpolating vertex positions on the GPU. Each key frame will be stored as a standard .OBJ file and an XML file will reference which frames are used in which animations etc. Although this won't achieve as nice looking results as a proper skeletal animation system, it is far easier to code and will scale quite nicely with large numbers of characters on screen.

Once I have implemented the animation system I will be moving on to the pathfinding logic.