assimp_loader

pyassimp-backed importer: parse a model file into a SceneData.

pyassimp is a thin ctypes wrapper around the native Open Asset Import Library (assimp). The Python package (pip install pyassimp) does not ship that native library, so a clear, actionable error is raised if it is missing rather than a bare ctypes failure. On Windows install the native DLL (e.g. conda install -c conda-forge assimp and put assimp*.dll on the PATH, or drop it beside the app); on Linux/mac install libassimp from the system package manager.

Only the static-geometry portion of the IR is required by the current import phase; bones and animation channels are extracted here too so the later skeletal / morph phases have their inputs without a loader change.

Functions

load_scene(file_path, extra_flags=0)[source]

Parse file_path into a SceneData using pyassimp.

Raises ImportError with install guidance if the native assimp library is unavailable, and FileNotFoundError if the model file does not exist.