29 releases

0.11.3 Feb 21, 2019
0.11.2 Jul 17, 2018
0.11.1 Jun 10, 2018
0.10.1 Mar 5, 2018
0.2.1 Nov 17, 2016

#6 in Rendering

Download history 556/week @ 2018-12-20 472/week @ 2018-12-27 705/week @ 2019-01-03 637/week @ 2019-01-10 682/week @ 2019-01-17 909/week @ 2019-01-24 640/week @ 2019-01-31 608/week @ 2019-02-07 732/week @ 2019-02-14 400/week @ 2019-02-21 435/week @ 2019-02-28 333/week @ 2019-03-07 204/week @ 2019-03-14 800/week @ 2019-03-21 233/week @ 2019-03-28

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

MIT/Apache

290KB
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.11"
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
~68K SLoC