Export to GLB - Shape Key new behavior Bug #98912

Closed
opened 2022-06-15 23:48:11 +02:00 by Patrick · 11 comments

Operating system: Win10

Broken: 3.2
Worked: 3.1

All the following refers to the glTF export.

In 3.1, I could use a Bone to Drive a shape key that deformed my mesh. For the shapekey animation to be associated to the correct Action, the Shapekeyed mesh Had to be parented to a bone from the Armature or the armature itself.
BLENDER 3.1 GLB.gif GIF of modelviewer result

In 3.2, the mesh needs to be parented to the armature only, not one of its bone. If parented to a bone, the shapekey animation will not export correctly, altough in Blender, it seems to work (meaning result is identical to the 3.1 glTF result).
BLENDER 3.2 GLB.gif GIF of modelviewer result

I prefer the 3.1 behavior since it allows for more flexibility. If there is a workaround, I would really like to know it, I have a few projects that use the 3.1 method.

Operating system: Win10 Broken: 3.2 Worked: 3.1 All the following refers to the glTF export. In 3.1, I could use a Bone to Drive a shape key that deformed my mesh. For the shapekey animation to be associated to the correct Action, the Shapekeyed mesh Had to be parented to a bone from the Armature or the armature itself. ![BLENDER 3.1 GLB.gif](https://archive.blender.org/developer/F13170912/BLENDER_3.1_GLB.gif) *GIF of modelviewer result* In 3.2, the mesh needs to be parented to the armature only, not one of its bone. If parented to a bone, the shapekey animation will not export correctly, altough in Blender, it seems to work (meaning result is identical to the 3.1 glTF result). ![BLENDER 3.2 GLB.gif](https://archive.blender.org/developer/F13170918/BLENDER_3.2_GLB.gif) *GIF of modelviewer result* I prefer the 3.1 behavior since it allows for more flexibility. If there is a workaround, I would really like to know it, I have a few projects that use the 3.1 method.
Author

Added subscriber: @Patnard

Added subscriber: @Patnard
Author

Here is the file I used to make both GLB represented in the GIFs.
glTF Shapekey 3.2.blend

Also, here is the resulting GLBs
3.1:B3.1 Shape Key + glTF.glb

3.2:B3.2 Shape Key + glTF.glb

Here is the file I used to make both GLB represented in the GIFs. [glTF Shapekey 3.2.blend](https://archive.blender.org/developer/F13171004/glTF_Shapekey_3.2.blend) Also, here is the resulting GLBs 3.1:[B3.1 Shape Key + glTF.glb](https://archive.blender.org/developer/F13171012/B3.1_Shape_Key___glTF.glb) 3.2:[B3.2 Shape Key + glTF.glb](https://archive.blender.org/developer/F13171013/B3.2_Shape_Key___glTF.glb)
Julien Duroure self-assigned this 2022-06-16 04:56:30 +02:00
Member
Confirmed. Proposed fix PR here: https://github.com/KhronosGroup/glTF-Blender-IO/pull/1667
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

@JulienDuroure, I've not tested this myself (both fix and original bug report).
If this is a regression and you think fix would not break anything then please mention this fix for corrective release blender/blender#98661

@JulienDuroure, I've not tested this myself (both fix and original bug report). If this is a regression and you think fix would not break anything then please mention this fix for corrective release blender/blender#98661

This issue was referenced by bc44a075d1

This issue was referenced by bc44a075d17f508e653e29927c55c987ee2b85b2

This issue was referenced by aa353e127c

This issue was referenced by aa353e127c2be0a31e10f8b3621fc418bcf6d6ef
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Author

@JulienDuroure I encountered a different bug, linked to this one in the way that it's about bone parenting. I wanted to report it, but I was wondering if your recent fix, fixed it. I tried with blender-3.2.1-candidate+v32.cfc6eb739138- 28 june and the bug is present, in a way that it was not in 3.1.1. Is this version using your changes about parenting?

@JulienDuroure I encountered a different bug, linked to this one in the way that it's about bone parenting. I wanted to report it, but I was wondering if your recent fix, fixed it. I tried with blender-3.2.1-candidate+v32.cfc6eb739138- 28 june and the bug is present, in a way that it was not in 3.1.1. Is this version using your changes about parenting?
Member

@Patnard Yes, this fix is on build you tried.
Please create a bug report with your test case on upstream repo/bug tracker : https://github.com/KhronosGroup/glTF-Blender-IO/issues

@Patnard Yes, this fix is on build you tried. Please create a bug report with your test case on upstream repo/bug tracker : https://github.com/KhronosGroup/glTF-Blender-IO/issues
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#98912
No description provided.