Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.mesh.createFromObj

C๐Ÿท๏ธ Mesh

Part of StarfallEx namespace

๐Ÿ”— External
mesh.createFromObj(obj, threaded, triangulate)
View on GitHub|lua/starfall/libs_sh/mesh.lua:902
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Creates a mesh from an obj file. Only supports triangular meshes with normals and texture coordinates.

Parameters

NameTypeDescription
objstringThe obj file data
threaded?booleanOptional bool, use threading object that can be used to load the mesh over time to prevent hitting quota limit
triangulate?booleanWhether to triangulate faces. (Consumes more CPU)

Returns

TypeDescription
tableTable of Mesh objects. The keys correspond to the objs object names

Examples

No examples available.

Used In

No usages found in the codebase.