| Crates.io | avila-gltf |
| lib.rs | avila-gltf |
| version | 0.1.0 |
| created_at | 2025-12-04 22:44:16.020781+00 |
| updated_at | 2025-12-04 22:44:16.020781+00 |
| description | glTF 2.0 / GLB exporter - complete spec implementation - 100% Rust |
| homepage | |
| repository | https://github.com/avilaops/arxis |
| max_upload_size | |
| id | 1967256 |
| size | 21,684 |
glTF 2.0 / GLB Exporter - 100% Rust
Complete glTF 2.0 specification implementation for exporting 3D scenes.
use avila_gltf::{GltfExporter, ExportOptions};
use avila_mesh::{Scene, primitives};
// Create scene
let mut scene = Scene::new();
scene.add_mesh(primitives::cube(2.0));
// Export to GLB
let exporter = GltfExporter::new();
let glb_bytes = exporter.export_glb(&scene, &ExportOptions::default())?;
// Save to file
std::fs::write("model.glb", glb_bytes)?;
let options = ExportOptions {
asset_name: "My Model".into(),
include_normals: true,
include_uvs: true,
};
let glb = exporter.export_glb(&scene, &options)?;
MIT OR Apache-2.0