mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 08:34:23 +02:00
animation data
This commit is contained in:
parent
38e44207ea
commit
a264e1c939
7 changed files with 172 additions and 15 deletions
|
|
@ -18,17 +18,17 @@ fn main() -> Result<(), vmdl::ModelError> {
|
|||
let data = fs::read(path.with_extension("vvd"))?;
|
||||
let _vvd = Vvd::read(&data)?;
|
||||
|
||||
println!("{}", mdl.surface_prop);
|
||||
println!("{:?}", mdl.key_values);
|
||||
for bone in mdl.bones {
|
||||
println!(
|
||||
"{}: from {} at\n\t{:?}\n\t{:?}",
|
||||
bone.name,
|
||||
bone.parent,
|
||||
bone.quaternion,
|
||||
bone.pose_to_bone.rotation()
|
||||
);
|
||||
}
|
||||
println!("{:?}", mdl.header.flags);
|
||||
dbg!(mdl.local_animations);
|
||||
// for bone in mdl.bones {
|
||||
// println!(
|
||||
// "{}: from {} at\n\t{:?}\n\t{:?}",
|
||||
// bone.name,
|
||||
// bone.parent,
|
||||
// bone.quaternion,
|
||||
// bone.pose_to_bone.rotation()
|
||||
// );
|
||||
// }
|
||||
|
||||
// let model = Model::from_parts(mdl, vtx, vvd);
|
||||
// for strip in model.vertex_strips() {
|
||||
|
|
|
|||
|
|
@ -251,6 +251,7 @@ fn model_to_model(model: &Model, loader: &Loader, skin: usize) -> CpuModel {
|
|||
let skin = model.skin_tables().nth(skin).unwrap();
|
||||
|
||||
let transforms = model.root_transform();
|
||||
let transforms = Matrix4::identity();
|
||||
|
||||
let geometries = model
|
||||
.meshes()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue