MDL Format

KotOR Models are separated into two separate files (.mdl/.mdx). All offsets in mdl do not include the first 12 bytes (file header).

Layout
{| class="article-table" {| class="article-table"
 * Model Header
 * Name Header
 * Animations
 * Nodes
 * Animations
 * Nodes
 * Nodes
 * Node Header
 * Trimesh Header
 * Skinmesh Header
 * Danglymesh Header
 * Lightsaber Header
 * Walkmesh AABB Header
 * Reference Header
 * Emitter Header
 * Lightsaber Header
 * Walkmesh AABB Header
 * Reference Header
 * Emitter Header
 * Reference Header
 * Emitter Header
 * Emitter Header


 * Light Header
 * }
 * }
 * }

Model Header
Size is 168 bytes, including the geometry header.

Geometry Header
Size of 80 bytes.

Controller Structure
Each Controller is 16 bytes in size. Each row is a new time key containing the values for the data stored in the columns.

Node Header
Size is 80 bytes.

Trimesh Header
Size is 332 bytes for KotOR 1 models, 340 bytes for KotOR 2 models.

Danglymesh Header
Total size is 28 bytes

Skinmesh Header
Total size is 108 bytes

Sabermesh Header
Total size is 20 bytes

Editors

 * https://deadlystream.com/files/file/1150-mdledit/
 * https://deadlystream.com/files/file/779-mdlops/
 * https://deadlystream.com/topic/3714-toolkaurora/
 * https://deadlystream.com/files/file/889-kotorblender/
 * https://deadlystream.com/files/file/1151-kotormax/