- Messages
- 180
- Country

Hi,
I have some couple of questions about the MDL format...:
1) The transformation matrix in the FSX MDL files, is represented like this?:
Where, from left to right, the first colum is (X = pitch) axis, second column (Z = bank) axis, thrid colum (Y = heading) axis and fourth column (T = translation).
**OR! the matrix is represented like this?**:
Where, from left to right, the first colum is (X = pitch) axis, second column (Y = bank) axis, thrid colum (Z = heading) axis and fourth column (T = translation).??
I mean how it is interpreted the columns, according to which axis order?:
X, Z, Y, T......(from left to right)
OR! its:
X, Y, Z, T......(from left to right)?????
Same question goes for the (0xAF) opcode in FS2002/2004...in the FS2002 SDK it appears like: "BGL_TRANSFORM_MATRIX", and in SCASM its: "Transform_Mat", i also, want to know if the columns interpretation is:
X, Z, Y, T......(from left to right)
OR! its:
X, Y, Z, T......(from left to right)?????
**NOTE**: I know that in FSX MDL files matrices are 4x4 columns, and that the "Transform_Mat" contains a 3x3 matrix, so the translation information is in dx,dy,dz, parameters of the "Transform_Mat" BGL command.
2) In the FS world, the (X,Y,Z) axis are (pitch,bank,heading).....OR! ...its like this->... (X,Z,Y) axis are....(pitch,bank,heading)???
3) The increments and decrements in the Y axis is the same to same increments and decrements in Altitude?..i mean the Y axis in the FS world represents the Altitude right? (Just asking to confirm that the Y axis represents the altitude or height of an 3D object)...
4) Another thing, when does the TRAN section appears in FS2004 MDL files?..i mean..i know that in the BGL section, there are commands that let me set the transformation matrices, so i want to know if there could be any cases where i could have a 3D model's MDL file, containning a BGL section with the drawing code and its matrices commands inside (in the BGL section..like "Transform_Mat" and some others), and a TRAN section...??...i mean...does the TRAN section takes effect in the drawing of primitives 3D models..like building and terminals...(in FS2004?)....or the transformations are ONLY done in the BGL section?...(i dont know if i explained myself...clear
hope someone understand this doubt).
Best Regards,
Manuel Ambulo
I have some couple of questions about the MDL format...:
1) The transformation matrix in the FSX MDL files, is represented like this?:
Code:
//----(x)--(z)--(y)---(t)--
float m00, m01, m02, m03;
float m10, m11, m12, m13;
float m20, m21, m22, m23;
float m30, m31, m32, m33;
Where, from left to right, the first colum is (X = pitch) axis, second column (Z = bank) axis, thrid colum (Y = heading) axis and fourth column (T = translation).
**OR! the matrix is represented like this?**:
Code:
//----(x)--(y)--(z)---(t)--
float m00, m01, m02, m03;
float m10, m11, m12, m13;
float m20, m21, m22, m23;
float m30, m31, m32, m33;
Where, from left to right, the first colum is (X = pitch) axis, second column (Y = bank) axis, thrid colum (Z = heading) axis and fourth column (T = translation).??
I mean how it is interpreted the columns, according to which axis order?:
X, Z, Y, T......(from left to right)
OR! its:
X, Y, Z, T......(from left to right)?????
Same question goes for the (0xAF) opcode in FS2002/2004...in the FS2002 SDK it appears like: "BGL_TRANSFORM_MATRIX", and in SCASM its: "Transform_Mat", i also, want to know if the columns interpretation is:
X, Z, Y, T......(from left to right)
OR! its:
X, Y, Z, T......(from left to right)?????
**NOTE**: I know that in FSX MDL files matrices are 4x4 columns, and that the "Transform_Mat" contains a 3x3 matrix, so the translation information is in dx,dy,dz, parameters of the "Transform_Mat" BGL command.
2) In the FS world, the (X,Y,Z) axis are (pitch,bank,heading).....OR! ...its like this->... (X,Z,Y) axis are....(pitch,bank,heading)???
3) The increments and decrements in the Y axis is the same to same increments and decrements in Altitude?..i mean the Y axis in the FS world represents the Altitude right? (Just asking to confirm that the Y axis represents the altitude or height of an 3D object)...
4) Another thing, when does the TRAN section appears in FS2004 MDL files?..i mean..i know that in the BGL section, there are commands that let me set the transformation matrices, so i want to know if there could be any cases where i could have a 3D model's MDL file, containning a BGL section with the drawing code and its matrices commands inside (in the BGL section..like "Transform_Mat" and some others), and a TRAN section...??...i mean...does the TRAN section takes effect in the drawing of primitives 3D models..like building and terminals...(in FS2004?)....or the transformations are ONLY done in the BGL section?...(i dont know if i explained myself...clear
Best Regards,
Manuel Ambulo

