Skip to content

LoaderMatrix

Narta Xaymar Dirks edited this page Oct 28, 2026 · 7 revisions
Blitz3D

LoaderMatrix

LoaderMatrix:Void file_ext:String, xx:Float32, xy:Float32, xz:Float32, yx:Float32, yy:Float32, yz:Float32, zx:Float32, zy:Float32, zz:Float32
Parameter Mode Type Default Description
file_ext In String required File extension the matrix is for, for example x or 3ds.
xx In Float32 required Matrix value, row 1, column 1.
xy In Float32 required Matrix value, row 1, column 2.
xz In Float32 required Matrix value, row 1, column 3.
yx In Float32 required Matrix value, row 2, column 1.
yy In Float32 required Matrix value, row 2, column 2.
yz In Float32 required Matrix value, row 2, column 3.
zx In Float32 required Matrix value, row 3, column 1.
zy In Float32 required Matrix value, row 3, column 2.
zz In Float32 required Matrix value, row 3, column 3.

Description

Sets a 3x3 matrix that is applied to every model loaded from files with a certain extension, to correct a file format whose axes differ from Blitz3D. By default .x files are used as they are and .3ds files get Y and Z swapped. Only the file type matters, not the case.

Differences

  • Only the matrix for x is used. .3ds files always get Y and Z swapped, the default, and .b3d files are never turned (as in the original).

Related Commands

FlipMesh, LoadAnimMesh, LoadMesh, MeshCullBox

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally