animsmith-gltf 0.1.0

glTF/GLB ingestion into the animsmith core model
Documentation

animsmith-gltf

Overview

animsmith-gltf loads .gltf and .glb files into animsmith-core's Document model. It is the glTF/GLB boundary for embedding animsmith in a Rust pipeline: this crate handles container ingestion, while animsmith-core owns checks, measurements, config, and findings.

Values are preserved as authored. The loader does not renormalize quaternions, resample tracks, or clean data on the way in, so the mechanical checks judge the same animation data that shipped in the file. Buffers support GLB BIN chunks, data: URIs, and sibling external files; unsafe external-buffer paths are rejected.

load also fills Document::assets with the file's geometry — meshes (triangle lists), skins (joints + inverse bind matrices), and factor-only materials with embedded base-color textures — in the same single call, matching animsmith-fbx. Consumers that judge only animation ignore assets; measure reports mesh-level measurements from it and convert carries it through.

Install

[dependencies]
animsmith-core = "0.1"
animsmith-gltf = "0.1"

The compiling load/check and repair examples live in the crate-level API documentation.

Feature Flags

This crate has no public feature flags. In the animsmith CLI, glTF inspect/measure/lint/transform/fix/diff support is always available, including in --no-default-features builds. The workspace MSRV is Rust 1.88.

More Detail

License

Licensed under either the MIT license or the Apache License, Version 2.0, at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in animsmith by you is licensed as MIT OR Apache-2.0, without any additional terms or conditions.