A crate for loading glTF 2.0
Clone or download
Pull request Compare This branch is 15 commits behind gltf-rs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples Version 0.11.0 Jun 10, 2018
glTF-Sample-Models @ 8416be1 update sample models and fix issues with new sample "SimpleSparseAcce… Feb 23, 2018
gltf-derive Bump crate versions to 0.11.2 Jul 17, 2018
gltf-json Bump crate versions to 0.11.2 Jul 17, 2018
src
tests Version 0.11.0 Jun 10, 2018
.gitignore
.gitmodules
.travis.yml Version 0.11.0 Jun 10, 2018
CHANGELOG.md Version 0.11.2 Jul 8, 2018
CODE_OF_CONDUCT.md Added CHANGELOG, CODE_OF_CONDUCT, and updated CONTRIBUTING Jul 5, 2017
CONTRIBUTING.md Update CONTRIBUTING Mar 8, 2018
Cargo.toml Bump crate versions to 0.11.2 Jul 17, 2018
LICENSE-APACHE Relicensed the project under a dual MIT/Apache-2.0 licence. Mar 18, 2017
LICENSE-MIT Relicensed the project under a dual MIT/Apache-2.0 licence. Mar 18, 2017
README.md Add more docs Jun 10, 2018
clippy.toml Fix clippy issues Dec 20, 2017

README.md

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