Exported GLTF with Animation doesn't reimport with correct animations in Blender 3.3 #100911

Closed
opened 2022-09-08 12:11:25 +02:00 by Robert Farthing · 5 comments

System Information
Operating system: Windows 11
Graphics card: RTX 3090 FE

Blender Version
Broken: 3.3

Short description of error

Exported GLTF example file with animations doesn't reimport with animations correctly in Blender but imports fine into other GLTF viewers like web GLTF previewers

Exact steps for others to reproduce the error

  1. Open and export this Blend file as GLTF Separate + Textures (textures not needed), make sure all animation tickboxes are on by default
    https://drive.google.com/file/d/1m8wjthuZDruwwoUkZh3iuKzeELOG3T5p/view?usp=sharing
  2. Reimport the GLTF in Blender, see that the animations for the ceiling fan and car in the street are not reimported, instead the bedroom or bathroom object often have the animation applied to them as empty keyframes.
  3. Exported GLTF will show up fine in other web GLTF viewers like here:
    https://gltf-viewer.donmccurdy.com/

Simplified .blend file
Room302_08_QUest_12.blend

**System Information** Operating system: Windows 11 Graphics card: RTX 3090 FE **Blender Version** Broken: 3.3 **Short description of error** Exported GLTF example file with animations doesn't reimport with animations correctly in Blender but imports fine into other GLTF viewers like web GLTF previewers **Exact steps for others to reproduce the error** 1. Open and export this Blend file as GLTF Separate + Textures (textures not needed), make sure all animation tickboxes are on by default https://drive.google.com/file/d/1m8wjthuZDruwwoUkZh3iuKzeELOG3T5p/view?usp=sharing 2. Reimport the GLTF in Blender, see that the animations for the ceiling fan and car in the street are not reimported, instead the bedroom or bathroom object often have the animation applied to them as empty keyframes. 3. Exported GLTF will show up fine in other web GLTF viewers like here: https://gltf-viewer.donmccurdy.com/ - - - Simplified .blend file [Room302_08_QUest_12.blend](https://archive.blender.org/developer/F13468915/Room302_08_QUest_12.blend)

Added subscriber: @ROBYER1

Added subscriber: @ROBYER1
Member

Added subscribers: @PratikPB2123, @JulienDuroure

Added subscribers: @PratikPB2123, @JulienDuroure
Member

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

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

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

Hello,
I don't think there is any bug here.
glTF animation are stored at scene level (can contains animation from multiple objects), where actions in Blender are stored at object level.
At export, by default, every active action and NLA tracks are exported as separate glTF animation.
At import, because 2 differents animation can affect same object(s), only the first animation of the glTF file is assigned to Blender object. You can see in imported file that there is a non assigned action.
If you want all active actions to be exported as a single glTF animation (and then imported it as a single action too, so with all objects animated by default, you need, at export, to uncheck "Group by NLA Track" option.

image.png

Thanks !

Hello, I don't think there is any bug here. glTF animation are stored at scene level (can contains animation from multiple objects), where actions in Blender are stored at object level. At export, by default, every active action and NLA tracks are exported as separate glTF animation. At import, because 2 differents animation can affect same object(s), only the first animation of the glTF file is assigned to Blender object. You can see in imported file that there is a non assigned action. If you want all active actions to be exported as a single glTF animation (and then imported it as a single action too, so with all objects animated by default, you need, at export, to uncheck "Group by NLA Track" option. ![image.png](https://archive.blender.org/developer/F13468984/image.png) Thanks !
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#100911
No description provided.