50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<html>
|
|
<head>
|
|
<title>Blitz3D Docs</title>
|
|
<link rel=stylesheet href=../css/commands.css type=text/css>
|
|
</head>
|
|
<body>
|
|
<h1>LoaderMatrix file_extension$,xx#,xy#,xz#,yx#,yy#,yz#,zx#,zy#,zz#</h1>
|
|
<h1>Parameters</h1>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
file extension$ - file extension of 3d file, e.g. ".x",".3ds"
|
|
<br />
|
|
xx# - 1,1 element of 3x3 matrix
|
|
<br />
|
|
xy# - 2,1 element of 3x3 matrix
|
|
<br />
|
|
xz# - 3,1 element of 3x3 matrix
|
|
<br />
|
|
yx# - 1,2 element of 3x3 matrix
|
|
<br />
|
|
yy# - 2,2 element of 3x3 matrix
|
|
<br />
|
|
yz# - 3,2 element of 3x3 matrix
|
|
<br />
|
|
zx# - 1,3 element of 3x3 matrix
|
|
<br />
|
|
zy# - 2,3 element of 3x3 matrix
|
|
<br />
|
|
zz# - 3,3 element of 3x3 matrix
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<h1>Description</h1>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
Sets a matrix for 3d files loaded with the specified file extension.
|
|
|
|
<br />
|
|
|
|
<br />
|
|
This can be used to change coordinate systems when loading.
|
|
|
|
<br />
|
|
|
|
<br />
|
|
By default, the following loader matrices are used:
|
|
|
|
<br />
|
|
|
|
<br />
|
|
LoaderMatrix "x",1,0,0,0,1,0,0,0,1 ; no change in coord system
|
|
|
|
<br />
|
|
LoaderMatrix "3ds",1,0,0,0,0,1,0,1,0 ; swap y/z axis'
|
|
|
|
<br />
|
|
|
|
<br />
|
|
You can use LoaderMatrix to flip meshes/animations if necessary, eg:
|
|
|
|
<br />
|
|
|
|
<br />
|
|
LoaderMatrix "x",-1,0,0,0,1,0,0,0,1 ; flip x-cords for ".x" files
|
|
|
|
<br />
|
|
LoaderMatrix "3ds",-1,0,0,0,0,-1,0,1,0 ; swap y/z, negate x/z for ".3ds" files
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<a target=_top href=../index.htm>Index</a><br>
|
|
<br>
|
|
Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=LoaderMatrix&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
|
|
</html>
|