A crate for loading glTF 2.0
Clone or download
alteous Merge pull request #191 from anderejd/gltf_export_fixes
Changes to support glTF 2.0 export/serialization
Latest commit 00dddd8 Sep 3, 2018

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