saturday06 / VRM-Addon-for-Blender

VRM Importer, Exporter and Utilities for Blender 2.93 to 4.2
https://vrm-addon-for-blender.info
MIT License
1.34k stars 142 forks source link

Bug report: VRMA bone matrices incorrect #547

Open tdw46 opened 3 months ago

tdw46 commented 3 months ago

Describe the bug

With the attached VRM file, and VRMA made using the same rig in VRM Posing Desktop, import of VRMA does not produce correct bone transforms. VRM Files BONES ONLY.zip

Also, with the below VRMA made using blender. Playback is not right on the same rig inside unity/VRM Posing Desktop. But is correct when re-importing VRMA to blender on the same rig: ANIMATION FILES BONES ONLY.zip

To Reproduce

  1. Export VRMA of attached VRM above from Blender, and try to load in a Unity based application like VRM Posing Desktop. Pose will be wrong.
  2. Export VRMA of attached VRM above from Unity Based App like VRM Posing Desktop, and try to load in Blender. Pose will be wrong.
  3. Export from blender and reimport into blender and things will be correct. Export from unity and reimport to unity and things will be correct.

Expected behavior

Animation transforms should work the same in any app that is using the VRMA standard correctly. It seems there is something not working for this particular rig that might indicate a larger problem with the blender exporter/importer.

Desktop

saturday06 commented 3 months ago

Thanks for reporting!

This is a bug and will be fixed in a future version.

tdw46 commented 2 months ago

Thanks for reporting!

This is a bug and will be fixed in a future version.

May be related to the work you'll need to do on this. It looks like all actions in my blender file are exporting on my VRM: image

Would be really nice if we can just expose the gltf settings under the advanced section of the exporter so power users can turn on/off standard gltf features (that aren't part of VRM Extension).

Puru-Nekor commented 1 month ago

That is a same bug that I've occured I guess, I was using VRM4U in unreal and I realise the bone works in a very strange way, normaly it starts with a root but instead for this one it starts with the hips Animationtest.zip if you want to check, here's the file. the vrma and fbx export are all here It is exported from blender 4.2.1 LTS OS: Windows 11 Addon Version: [2.20.87]