gltf_loader

trimesh-backed importer for glTF / glB (and other trimesh-supported formats): parse a model file into a SceneData.

trimesh is pure-Python (plus numpy) and needs no native library, so unlike the pyassimp/FBX path this works out of the box. It loads geometry, per-vertex normals / UVs / colors, the node-instance transforms, and PBR materials (including embedded base-color textures, which are handed to the IR as in-memory images).

The output is the same backend-independent SceneData the FBX loader produces, so Model3D builds both through one shared path.

Functions

load_scene(file_path)[source]

Parse file_path (glTF/glB/OBJ/PLY/… anything trimesh reads) into a SceneData. Node-instance world transforms from the scene graph are baked into flat root nodes (parent -1), which the shared model builder then applies to the geometry.