Slow FBX import of long animations #76566
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#76566
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: RTX 2080
Blender Version
Broken:
2.83, 7a4e045d8f5f, 2020-05-07
2.90, c6cda3c09cd0, 2020-05-07
Worked: Never
Description of error
Long and complex FBX animations take extremely long to import while the exact same animations in BVH format get imported very quickly. As an example I attached a 50 second long motion capture animation of one armature. In BVH format it takes a few seconds to import, in FBX format it takes over 10 minutes.
This is caused by how the FBX importer adds keyframes to the fcurves compared to the BVH importer.
The FBX importer adds one keyframe at a time to the fcurve as seen here: (import_fbx.py, line 620)
The BVH importer adds all keyframes into one fcurve at once and modifies them afterwards: (import_bvh.py, line 587)
Solution
Adding all keyframes at once is significantly faster than adding them one after each other. So rewriting the FBX importer to use the same method as the BVH importer will significantly improve the import speed.
Exact steps for others to reproduce the error
ZombieWalk_DEFAULT_E89.bvh
ZombieWalk_DEFAULT_E89.fbx
Added subscriber: @Hotox
This issue was referenced by
8e70aeae09
Changed status from 'Needs Triage' to: 'Resolved'