30 releases

✓ Uses Rust 2018 edition

0.13.0 Jul 27, 2019
0.11.3 Feb 21, 2019
0.11.2 Jul 17, 2018
0.10.1 Mar 5, 2018
0.2.1 Nov 17, 2016

#1 in #3d

Download history 1286/week @ 2019-05-16 1233/week @ 2019-05-23 1254/week @ 2019-05-30 1323/week @ 2019-06-06 1142/week @ 2019-06-13 1176/week @ 2019-06-20 1176/week @ 2019-06-27 1179/week @ 2019-07-04 888/week @ 2019-07-11 634/week @ 2019-07-18 575/week @ 2019-07-25 745/week @ 2019-08-01 480/week @ 2019-08-08 470/week @ 2019-08-15 641/week @ 2019-08-22

4,472 downloads per month
Used in 10 crates (8 directly)

MIT/Apache

315KB
7K SLoC

gltf

travis crates.io docs.rs


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.

Reference infographic

infographic

From javagl/gltfOverview.

Usage

See the crate documentation for example usage.

Extras and Names

By default, gltf ignores all extras and names included with glTF assets. You can negate this by enabling the extras and names features, respectively.

[dependencies.gltf]
version = "0.13"
features = ["extras", "names"]

Examples

gltf-display

Demonstrates how the glTF JSON is deserialized.

cargo run --example gltf-display path/to/asset.gltf

gltf-export

Demonstrates how glTF JSON can be built and exported using the gltf-json crate.

cargo run --example gltf-export

gltf-roundtrip

Deserializes and serializes the JSON part of a glTF asset.

cargo run --example gltf-roundtrip path/to/asset.gltf

gltf-tree

Visualises the scene heirarchy of a glTF asset, which is a strict tree of nodes.

cargo run --example gltf-tree path/to/asset.gltf

Dependencies

~1.2–2.2MB
~48K SLoC