Animating MD2 models

The story so far.

The story started early 2009 when I created a Java applet that animated these MD2 models. In 2010 I combined what I learnt with my Shapes3D library to create a simple game called 'Gah Invaders'. When applets went the way of the Dodo my game was relegated to the dusty corners on my hard drive.

Now in 2022 I decided to bite the bullet and learn Javascript and while investigating typed-arrays and the DataView class I realised these were the perfect solution to handling binary data. I thought, `why not create a Javascript loader and animator for MD2 models?' So that's what I did and here is the result.

Enjoy!!!

Gah

Ogro

About the models

Each animation comprises of two models, the creature and its weapon. I do not take any credit for the actual models because I did not create them. Having said that, I did have to use a hex editor to make some changes to -

  • match the key frame names used in the two Ogro files and
  • correct one of the Gah death animation sequences

To be fair to the model creators the links below show the text files that came with the models Gah and Ogro