Difference between revisions of "MDL file format (MSFS)"

From FSDeveloper Wiki
Jump to: navigation, search
Line 12: Line 12:
 
MSFS uses glTF files for models, but when these are combined to BGL file for use in scenery they are still wrapped as MDL files. These MDL files have a similar RIFF container structure as FSX MDL files. The table below shows the different sections and their content.
 
MSFS uses glTF files for models, but when these are combined to BGL file for use in scenery they are still wrapped as MDL files. These MDL files have a similar RIFF container structure as FSX MDL files. The table below shows the different sections and their content.
  
TODO add table
+
{| class="wikitable"
 +
|+MSFS MDL sections
 +
|'''Section'''
 +
|'''Content'''
 +
|-
 +
|GXML
 +
|This section contains the model XML file. Within this XML the object GUID, the levels of detail and the animations used are defined.
 +
|-
 +
|GLBD
 +
|This section contains all the representations of the object. It is a collection of GLB sections, one for each level of detail.
 +
|-
 +
|GLB
 +
|This section contains the binary glTF data of the object for a specific level of detail. It is stored as a binary glTF file, which means that the JSON glTF data and the binary BIN data are combined in one binary file. This binary file is stored in this section.
 +
|}
  
 
= glTF standard exceptions =
 
= glTF standard exceptions =

Revision as of 13:23, 25 March 2021

MDL sections

MSFS uses glTF files for models, but when these are combined to BGL file for use in scenery they are still wrapped as MDL files. These MDL files have a similar RIFF container structure as FSX MDL files. The table below shows the different sections and their content.

MSFS MDL sections
Section Content
GXML This section contains the model XML file. Within this XML the object GUID, the levels of detail and the animations used are defined.
GLBD This section contains all the representations of the object. It is a collection of GLB sections, one for each level of detail.
GLB This section contains the binary glTF data of the object for a specific level of detail. It is stored as a binary glTF file, which means that the JSON glTF data and the binary BIN data are combined in one binary file. This binary file is stored in this section.

glTF standard exceptions

Although the glTF files are stored in binary form inside the MDL files, there are a number of optimizations that the MSFS package tool performs that makes them deviate from the glTF standard. The list below gives an overview of these differences.

TODO add list