KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.49k stars 318 forks source link

Classic Stretched Bone issue when exporting animation. #156

Closed enzyme69 closed 5 years ago

enzyme69 commented 5 years ago

I am trying to pose and make a simple animation using "Spiderman Amazing Rig" below that hopefully works as GLTF anim: Spiderman Amazing Rigged 2 2 CYCLE 009.blend.zip

I am using Blender 2.79 and 2.8. So far 2.8 GLTF is giving a weird stretched bone animation and totally out of whack. I have seen similar issues posted in the past. There is no proper solution.

Screen Recording 2018-12-09 at 11.44.53 pm.mov.zip

screen shot 2018-12-10 at 12 21 00 am screen shot 2018-12-10 at 12 20 49 am

However, KUPOMAN GLTF export is the only add-on known out there that can export the animation above properly: https://github.com/Kupoman/blendergltf

I tested it many times. It's not the problem if IK or FK, but sometimes if weight is abnormal it can cause error. Also the way Blender Rig sometimes is made without proper ROOT or non-connected bones... I don't know ¯_(ツ)_/¯

I did convert the IK to FK using this add-on: https://github.com/chinedufn/blender-iks-to-fks

It might be the way the rig was done causing the export to give weird stretching bones etc, but Kupoman GLTF export manage to export it even without me baking the IK.

enzyme69 commented 5 years ago

This is the rig with basic anim, where it begins. IK animation, there is some weighting issue around feet area. But even when that part fixed, export using Blender 2.8 causes weird stretching. Give it a try~ please. Thanks!

Spiderman Amazing Rigged 2 2 CYCLE 001.blend.zip

donmccurdy commented 5 years ago

Thanks for reporting this! The issue has been fixed.