X Transformation matrix

Blitz3D Forums/Blitz3D Programming/X Transformation matrix

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Hi,

Does anyone understand the transformation matrix in an X file? Ive (kind of) worked it out for single entity meshes and parents, but all the children seem to go haywire. Also, i understand the internal matrix in blitz deals with 3x3 matrix. This seems to correspond with numbers in the X format in some experiments ive done. However in the X file format, it uses 4x4. i think ive sussed out the bottom row as world coordinates, but the 4th column is a bit of a mystery.

TM,TM,TM,?
TM,TM,TM,?
TM,TM,TM,?
PX,PY,PZ,?

?=No idea what this is for
TM=transformation matrix matching the one in blitz (also a mystery)
PX,PY,PZ=World position? Although in some situations seems to affect the scale?!?

Im basically trying to export both basic and structured meshes to an X file.