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

#928 in Game dev

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

~40–77MB
~1.5M SLoC