mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
fix multi mesh models
This commit is contained in:
parent
dda97e9856
commit
3aa5c8751b
8 changed files with 224 additions and 26 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue