3 releases
Uses new Rust 2024
| 0.1.2 | Oct 8, 2025 |
|---|---|
| 0.1.1 | Jul 3, 2023 |
| 0.1.0 | Jul 3, 2023 |
#25 in Data formats
188 downloads per month
46KB
1.5K
SLoC
goth-gltf
Goth-gltf aims to be a low-level, unopinionated reader for gltf files.
Basic example:
let filename = std::env::args().nth(1).unwrap();
let bytes = std::fs::read(&filename).unwrap();
let (gltf, _): (
goth_gltf::Gltf<goth_gltf::default_extensions::Extensions>,
_,
) = goth_gltf::Gltf::from_bytes(&bytes).unwrap();
println!("{:#?}", gltf);
In comparison with gltf-rs, it:
- Represents the gltf JSON structure transparently
- Uses nanoserde instead of serde
- Supports a wider range of extensions
- Has no code specific for loading images or reading attributes out of buffers
Extensions Implemented
KHR_lights_punctualKHR_materials_emissive_strengthKHR_materials_iorKHR_materials_sheenKHR_materials_unlitKHR_texture_basisuKHR_texture_transformKHR_materials_transmissionEXT_mesh_gpu_instancingEXT_meshopt_compressionMSFT_lodMSFT_screencoverage
License: MIT
Dependencies
~250KB