7 unstable releases (3 breaking)

0.4.0 Aug 18, 2024
0.3.2 Apr 1, 2024
0.3.1 Mar 10, 2024
0.3.0 Dec 24, 2023
0.1.1 Jun 21, 2023

#817 in Game dev

Download history 25/week @ 2024-08-20 2/week @ 2024-08-27 1/week @ 2024-09-17 7/week @ 2024-09-24 6/week @ 2024-10-01 1/week @ 2024-10-08 3/week @ 2024-10-29 13/week @ 2024-11-05

392 downloads per month

MIT/Apache

30KB
765 lines

B3D

crates.io docs.rs

The Blitz3d game engine uses the .b3d extension, which is provided by this crate.

Usage

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);

Task list

  • Write documentation
  • Switch to binrw
  • Implement bones and weights
  • Add examples

Similar Projects

Dependencies

~39–76MB
~1.5M SLoC