LoaderMatrix.htm 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>LoaderMatrix file_extension$,xx#,xy#,xz#,yx#,yy#,yz#,zx#,zy#,zz#</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. file extension$ - file extension of 3d file, e.g. ".x",".3ds" <br />
  13. xx# - 1,1 element of 3x3 matrix <br />
  14. xy# - 2,1 element of 3x3 matrix <br />
  15. xz# - 3,1 element of 3x3 matrix <br />
  16. yx# - 1,2 element of 3x3 matrix <br />
  17. yy# - 2,2 element of 3x3 matrix <br />
  18. yz# - 3,2 element of 3x3 matrix <br />
  19. zx# - 1,3 element of 3x3 matrix <br />
  20. zy# - 2,3 element of 3x3 matrix <br />
  21. zz# - 3,3 element of 3x3 matrix
  22. </td>
  23. </tr>
  24. </table>
  25. <h1>Description</h1>
  26. <table>
  27. <tr>
  28. <td>
  29. Sets a matrix for 3d files loaded with the specified file extension. <br />
  30. <br />
  31. This can be used to change coordinate systems when loading. <br />
  32. <br />
  33. By default, the following loader matrices are used: <br />
  34. <br />
  35. LoaderMatrix "x",1,0,0,0,1,0,0,0,1 ; no change in coord system <br />
  36. LoaderMatrix "3ds",1,0,0,0,0,1,0,1,0 ; swap y/z axis' <br />
  37. <br />
  38. You can use LoaderMatrix to flip meshes/animations if necessary, eg: <br />
  39. <br />
  40. LoaderMatrix "x",-1,0,0,0,1,0,0,0,1 ; flip x-cords for ".x" files <br />
  41. LoaderMatrix "3ds",-1,0,0,0,0,-1,0,1,0 ; swap y/z, negate x/z for ".3ds" files
  42. </td>
  43. </tr>
  44. </table>
  45. <br>
  46. <a target=_top href=../index.htm>Index</a><br>
  47. <br>
  48. 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>
  49. </html>