Binary mdl model file format

From FreeAllegiance Wiki
Revision as of 21:40, 18 June 2010 by Madpeople (talk | contribs) (Hey guys, I'm using KGJV's AMT 2 source and mdl files to work out and document the mdl file format :) Will update as I make progress, then put appropiate links from other pages when ther is more done.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page details the internal file format of a binary .mdl model file.

IMPORTANT These files use Little Endian format for numbers.

Header

All .mdl files begin with the 32bit magic number 0xDEBADF00.

Due to the little endian storage of this the first four bytes in a file as seen with a hex editor are (in hex) 00,DF,BA,DE.