Crates.io | bevy_b3d |
lib.rs | bevy_b3d |
version | 0.3.2 |
source | src |
created_at | 2023-06-19 03:33:36.21183 |
updated_at | 2024-04-01 17:35:04.270774 |
description | A Bevy extension for B3D loading |
homepage | https://github.com/scpcbredux/b3d/ |
repository | https://github.com/scpcbredux/b3d/ |
max_upload_size | |
id | 893778 |
size | 12,419 |
The Blitz3d game engine uses the .b3d
extension, which is provided by this crate.
let bytes = unimplemented!();
let b3d = b3d::B3D::read(bytes).unwrap();
let vertices = b3d.node.mesh.vertices.vertices;
let positions: Vec<_> = vertices.iter().map(|v| v.position).collect();
let normals: Vec<_> = vertices.iter().map(|v| v.normal).collect();
println!("Postions: {:#?}", positions);
println!("Normals: {:#?}", normals);