30 releases

✓ Uses Rust 2018 edition

0.12.0 Apr 21, 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

#4 in Rendering

Download history 815/week @ 2019-03-24 379/week @ 2019-03-31 225/week @ 2019-04-07 531/week @ 2019-04-14 1082/week @ 2019-04-21 778/week @ 2019-04-28 670/week @ 2019-05-05 937/week @ 2019-05-12 1559/week @ 2019-05-19 1189/week @ 2019-05-26 977/week @ 2019-06-02 1416/week @ 2019-06-09 1082/week @ 2019-06-16 1320/week @ 2019-06-23 1181/week @ 2019-06-30

3,110 downloads per month
Used in 8 crates (7 directly)

MIT/Apache

293KB
6.5K SLoC

gltf

travis crates.io docs.rs gitter


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.12"
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-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

~3.5MB
~61K SLoC