ArcBasicDocs

LoadMesh

Loads a mesh (.glb, .gltf, .fbx, .obj).

LoadMesh ( filename$[,parent] )

Parameters

filename$
the model file: .glb, .gltf, .fbx, .obj, .x or .3ds.
parent (optional)
an entity to attach it to, or 0 for none.

Description

Loads a 3D model from a file as a single mesh and gives back its handle, or 0 if it can't be loaded. Textures the model uses are loaded too, from next to the model. Use it for models that don't move their parts; LoadAnimMesh keeps the parts, and their animation, separate. .glb and .gltf are the best formats to use: most 3D tools can save them. Free models (CC0, by Kenney) to start with are in the media/kenney folder. The .b3d format isn't supported.

See also