model_mob¶
Import a 3-D model file (glB/glTF, FBX, OBJ, …) as an Algan
Mob.
Model3D parses the file into the backend-independent
SceneData IR and builds one
TriangleMesh child per mesh instance, with
geometry baked into the model’s world space.
The parser backend is chosen from the file extension:
.glb/.gltf(and other trimesh formats) -> trimesh, which is pure-Python and needs no native library..fbx-> pyassimp, which needs the nativeassimplibrary installed separately (seeassimp_loader).
Baking the node hierarchy to world-space vertices (rather than reconstructing a
live Algan transform hierarchy) keeps static import unambiguous and is also the
substrate every animation phase uses: rigid node animation, skeletal skinning
and blend-shape morphs all reduce to per-frame vertex positions, which the
ray tracer’s spatio-temporal BVH already consumes through TriangleMesh’s
animatable per-corner location.
Classes
Load a 3-D model file and build its geometry/textures as a Mob. |