19 releases (1 stable)
|1.0.0||Jan 30, 2022|
|0.16.0||May 13, 2021|
|0.15.2||Mar 29, 2020|
|0.14.0||Oct 6, 2019|
|0.9.3||Oct 28, 2017|
#6 in Data formats
36,494 downloads per month
Used in 193 crates (4 directly)
This crate is intended to load glTF 2.0, a file format designed for the efficient transmission of 3D assets.
rustc version 1.32 or above is required.
See the crate documentation for example usage.
Extras and names
gltf ignores all
names included with glTF assets. You can negate this by enabling the
names features, respectively.
[dependencies.gltf] version = "1.0" features = ["extras", "names"]
The following glTF extensions are supported by the crate:
To use an extension, list its name in the
[dependencies.gltf] features = ["KHR_materials_unlit"]
Demonstrates how the glTF JSON is deserialized.
cargo run --example gltf-display path/to/asset.gltf
Demonstrates how glTF JSON can be built and exported using the
cargo run --example gltf-export
Deserializes and serializes the JSON part of a glTF asset.
cargo run --example gltf-roundtrip path/to/asset.gltf
Visualises the scene heirarchy of a glTF asset, which is a strict tree of nodes.
cargo run --example gltf-tree path/to/asset.gltf
Running tests locally requires to clone the
glTF-Sample-Models repository first.
git clone https://github.com/KhronosGroup/glTF-Sample-Models.git