b3d

Crates.iob3d
lib.rsb3d
version0.1.9
sourcesrc
created_at2023-02-25 04:38:56.306189
updated_at2024-08-18 20:19:58.988878
descriptionA parser for the b3d extension
homepagehttps://github.com/DotWith/b3d/
repositoryhttps://github.com/DotWith/b3d/
max_upload_size
id794159
size18,600
DotWith (DotWith)

documentation

https://docs.rs/b3d

README

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

Commit count: 19

cargo fmt