#mesh #legacy #parser #extension #microsoft #direct #direct-x

directx_mesh

A parser for the legacy microsoft direct x mesh extension

1 unstable release

0.1.0 Aug 18, 2024

#348 in Graphics APIs


Used in 2 crates

MIT/Apache

7KB
101 lines

DirectX Mesh

crates.io docs.rs

Rust parser for Legacy Microsoft DirectX Mesh file extension.

Usage

let bytes = std::fs::read_to_string("GFX/map.x").unwrap();
let x_mesh = read_directx_mesh(&bytes).unwrap();
assert_eq!(x_mesh.vertices.len(), 301);

Examples

Task list

  • Write documentation
  • Create a writer
  • Read materials
  • Read animations, bones, etc

Dependencies

~230–680KB
~16K SLoC