CMDL (Tropical Freeze)

The CMDL, SMDL, and WMDL format are Tropical Freeze's three model formats. All three are the same basic format, with SMDL and WMDL each containing an extra data section at the start of the file. With the Wii U's graphics system being updated from GX to GX2, the Retro model format has been dramatically overhauled, bearing little to no resemblance to the previous CMDL format found in DKCR and the Prime series.

Format
After the RFRM Header, the first section of the file is SKHD in SMDL, and WDHD in WMDL. Following those extra sections, all three formats start with a header.

HEAD
If the ending flag is 1, then a large chunk of extra data follows before the next section begins; otherwise, the HEAD section ends.

MTRL
Materials. To do.

MESH
The MESH section does what the name suggests: it defines submeshes. The MESH section header is as follows:

Each submesh definition is structured as follows:

VBUF
The VBUF section defines vertex buffers; each buffer can have different vertex types, with different strides and attributes.