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.45k stars 306 forks source link

Deform bones not showing up in UE5 when using Child of Constraint #2230

Closed Disar closed 1 week ago

Disar commented 1 month ago

Describe the bug I understand that constraints need to be baked, but the problem is that all of the bones disappear with the exception of none deform bones and the root when i try to load the glb into unreal. Without the constraint it's perfectly fine

To Reproduce image In blender the green bones have child of set to the red bone. Sampling is turned on at export and bake all Objects Animations doesn't make a difference.

Expected behavior All bones should be imported in ue5

Screenshots image

.blend file/ .gltf (mandatory) gltfexportbones.zip

Version

Additional context This might be an issue with Unreal but so far it only happens when i try to export skeletal meshes/animations that use a constraint ( child of constraint in this case ). IK constraints work perfectly fine however.

julienduroure commented 1 month ago

Hello, Reimporting in Blender shows that all 10 bones are here.

Checking the exported file shows the 10 joints exported: image

Can't find any issue here, at first look.

Disar commented 1 month ago

That's weird, then I don't know. UE5 doesn't throw an error either. It only happens with the constraints 🤔 Ill check later if Godot has the same issue.

julienduroure commented 1 month ago

image

Disar commented 1 month ago

sigh, thanks for checking it out. I guess UE5 is the culprit here, is there anything specific that's different in the file when using/baking with constraints?

julienduroure commented 1 month ago

They can have some difference is bone is a deformation bone or not, but we don't check if bones have constraint or not.

julienduroure commented 1 week ago

More than a month without any answer, closing this ticket. Feel free to comment and provide new information if you want me to have a look