MD2 Format - [Quake 2 File
Format]
Author bkenwright@xbdev.net
Have you heard of the game quake?... well the quake file format
version 2 will be covered here...its one of the simplest and easiest to understand
3D formats around. It contains a lot of power and allows you to create animated
characters.
Well I decided the best way to introduce you to the file format,
is to give you it in main parts, first we'll describe how to extract a single
static 3D part of the .md2 file, then show you how the animated data is stored.
Then to top it all off, how to create classes which can be re-used over and
over again... first a simple class which is independent of DirectX and a efficient
DirectX3D class as well.
 |
MD2 Quick Review File Specs.. |
 |
File Format Layout
Quick Sketch of the MD2 File Format.
 |
MD2 File Format Tutorials. |
 |
Static MD2.
Animated MD2
CMd2 Class
CMd2 DirectX3D Class
 |
MD2 Demo |
 |
Many Characters MD2 Demo
Using the simple md2.h/.cpp class we can easily put together simple demos
that have multiple characters. I thought it would look good to do a
little army of men on the screen at the same time for fun. You can
drag the mouse button to rotate around and zoom, so you can see a suround
view of your army. The demo only loads two models and renders them in
lots of different positions and loops through the different animations - but
you could extend the demo even further, and have lots of different models
loaded and have them explore and fight, each its own person! |
 |
|
|