Lib.mesh.generate.LoadObj - tixl3d/tixl GitHub Wiki

LoadObj

in Lib.mesh.generate


Loads a a mesh from an obj. file by generating Vertex and Index buffers which can be rendered with [DrawMesh] , [DrawMeshUnlit] and [DrawMeshHatched] among others. All surfaces must have valid UVs, otherwise they will appear black.

For a more comfortable import of 3d meshes (which also allows the import of already linked materials) use [LoadGltfScene] in combination with [DrawScene].

For a simple and interactive tutorial on the TiXL rendering pipeline, see [HowToDrawThings].

It can also become the source for a particle system with [MeshVerticesToPoints] or [PointsOnMesh].

To generate meshes procedurally with many adjustment options see [CubeMesh], [CylinderMesh], [QuadMesh], [SphereMesh] or [TorusMesh] etc.


Input Parameters

Name (Relevancy & Type) Description
Path (String) Use "..." to select a Wavefront .obj file to import
UseGPUCaching (Boolean) toggle GPU Caching
ClearGPUCache (Boolean) enable and disable to clear gpu cache
SortVertices (Int32) check to sort vertices
ScaleFactor (Single) Uniformly scales the loaded mesh

Outputs

Name Type
Data T3.Core.DataTypes.MeshBuffers

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

⚠️ **GitHub.com Fallback** ⚠️