28 releases

0.11.2 Jul 17, 2018
0.10.1 Mar 5, 2018
0.9.3 Oct 28, 2017
0.7.0 Jul 28, 2017
0.2.1 Nov 17, 2016

#5 in Rendering

Download history 376/week @ 2018-08-15 687/week @ 2018-08-22 605/week @ 2018-08-29 283/week @ 2018-09-05 483/week @ 2018-09-12 360/week @ 2018-09-19 572/week @ 2018-09-26 659/week @ 2018-10-03 479/week @ 2018-10-10 1300/week @ 2018-10-17 448/week @ 2018-10-24 537/week @ 2018-10-31 460/week @ 2018-11-07

2,169 downloads per month
Used in 8 crates (7 directly)

MIT/Apache

279KB
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.19 or above is required; version 1.26 and above is recommended.

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.11"
features = ["extras", "names"]

Examples

gltf-display

Demonstrates how the glTF JSON is deserialized.

cargo run --example gltf-display 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

~3.5MB
~69K SLoC