gltf-rs/gltf
소개
glTF 2.0을 로드하는 Rust 크레이트
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgltf
This crate is intended to load glTF 2.0, a file format designed for the efficient transmission of 3D assets.
rustc version 1.61 or above is required.
Reference infographic

From javagl/gltfOverview
Usage
See the crate documentation for example usage.
Features
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 = "1.4"
features = ["extras", "names"]
glTF extensions
The following glTF extensions are supported by the crate:
KHR_lights_punctualKHR_materials_pbrSpecularGlossinessKHR_materials_unlitKHR_texture_transformKHR_materials_variantsKHR_materials_volumeKHR_materials_specularKHR_materials_transmissionKHR_materials_iorKHR_materials_emissive_strengthEXT_texture_webp
To use an extension, list its name in the features section.
[dependencies.gltf]
features = ["KHR_materials_unlit"]
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-roundtrip
Deserializes and serializes the JSON part of a glTF asset.
cargo run --example gltf-roundtrip 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
Tests
Running tests locally requires to clone the glTF-Sample-Models repository first.
git clone https://github.com/KhronosGroup/glTF-Sample-Models.git
관련 프로젝트 살펴보기
불러오는 중…