Sign in to follow this  
Moolicious

MD2 format description needed...

Recommended Posts

Moolicious    130
Hey, I'm looking for a breakdown of the MD2 model format, eg. what's in the header, etc. I would like to create an importer for my game. Anyone have any links? Now for a legal question. Are the public allowed to freely create comercial games which use the MD2 (quake 2) model format? Thanks! MOOoooooooooooooooolicious

Share this post


Link to post
Share on other sites
Promit    13246
MD2 file format specifications
Quake 2's .md2 model file format (I like this one)
I also have code to massage the MD2 data into a more friendly format than the idiotic way it's stored on disk, if you'd like.

As for legality, the format is not protected, but the original id Software tools are. So if you use the exporters written by id, you can't use it in your own software. If, however, you use Milkshape 3D or some independently written MD2 exporter, you can do whatever you want.

Share this post


Link to post
Share on other sites
whitde    134
I agree with the above comment about the idiotic format and the need to massage it.

I read it in and totally re-arrange the format and even calculate normals for lighting.

Every frame also has the same texture coordinates so take advantage of this. The otiginal code use to re-calculate the texture coordinates aech time a model was rendered that must have cost countless CPU cycles for nothing.

Share this post


Link to post
Share on other sites
Moolicious    130
Thanks guys!

All these links are very cool. I did google it but I didn't get what I wanted. I am currently writting university exams so I will only get to play with this model format during my vac. Thanks, I will bear in mind all your comments.

Moolicious

Share this post


Link to post
Share on other sites
circlesoft    1178
Here is an article on GameDev, entitled Using Vertex Tweening For Animation. It demonstrates how to use hardware-accelarated tweening for faster animation, and the demo has some solid MD2 loading code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this