LoadMesh()

Syntax

Result = LoadMesh(#Mesh, Filename$)
Description
Loads a new #Mesh from the disk. If #PB_Any is used as '#Mesh' parameter, the new mesh number will be returned as 'Result'. Before loading a mesh, an archive has to be specified with Add3DArchive().

Mesh has to be in the OGRE .mesh format. To create or convert existing meshes into this format, some exporters exist (Milkshape, Lightwave, 3DS Max). More informations can be found directly on the OGRE website.

If the 'Result' is 0, the Mesh can't be loaded. If the #Mesh was already created, it is automatically freed and replaced by the new one.

Supported OS

Windows, Linux

<- IsMesh() - Mesh Index - MeshID() ->