au3Irr2 Function Reference
_IrrGetMeshLoads the specified mesh ready to be added to the scene.
#Include <au3Irrlicht2.au3>
_IrrGetMesh($s_MeshFile)
Parameters
$s_MeshFile | Filename of the mesh object to load |
Return Value
Success: Handle of the loaded mesh objectFailure: False
Remarks
The Irrlicht engine supports a wide range of mesh types.Static objects:
Irrlicht static meshes (.irrmesh, r/w) | 3D Studio meshes (.3ds, r) |
|Alias Wavefront Maya (.obj, r/w) | Lightwave Objects (.lwo, r) |
|COLLADA 1.4 (.xml, .dae, r/w) | OGRE meshes (.mesh, r) |
|My3DTools 3 (.my3D, r) | LMTools (.lmts, r) |
|Quake 3 levels (.bsp, r) | DeleD (.dmf, r) |
|FSRad oct (.oct, r) | Cartography shop 4 (.csm, r) |
|STL 3D files (.stl, r/w) | PLY 3D files (.ply, r/w) |
Animated objects:
B3D files (.b3d, r, skeleton) | Microsoft DirectX (.x, r) (binary & text, skeleton) |
|Milkshape (.ms3d, r, skeleton) | Quake 3 models (.md3, r, morph) |
Related
_IrrAddMeshToScene, _IrrRemoveMesh
Example
#include "au3Irrlicht2.au3"
_IrrStart()
local $camera = _IrrAddCamera(2,2,2, 0,0,0 )
local $mesh = _IrrGetMesh( ".\media\capsuleX.obj" )
local $sceneNode = _IrrAddMeshToScene( $mesh )
local $texture = _IrrGetTexture(".\media\default_texture.png")
_IrrSetNodeMaterialTexture( $sceneNode, $texture, 0)
_IrrSetNodeMaterialFlag( $sceneNode, $IRR_EMF_LIGHTING, $IRR_OFF )
WHILE _IrrRunning()
_IrrBeginScene(50, 50, 50)
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()