fix multi mesh models

This commit is contained in:
Robin Appelman 2022-03-12 17:36:14 +01:00
commit 3aa5c8751b
8 changed files with 224 additions and 26 deletions

View file

@ -17,15 +17,15 @@ fn main() -> Result<(), vmdl::ModelError> {
let vtx = Vtx::read(&data)?;
let data = fs::read(path.with_extension("vvd"))?;
let vvd = Vvd::read(&data)?;
dbg!(vvd.vertices.last());
dbg!(mdl.body_parts);
let model = Model::from_parts(mdl, vtx, vvd);
for strip in model.vertex_strips() {
for vertex in strip {
println!("{:?}", vertex);
}
println!("")
}
// let model = Model::from_parts(mdl, vtx, vvd);
// for strip in model.vertex_strips() {
// for vertex in strip {
// println!("{:?}", vertex);
// }
// println!("")
// }
Ok(())
}