FBX IO: Fix animation import when the newer opt-in FBX_KTIME is used #105019
No reviewers
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#105019
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Mysteryem/blender-addons:fbx_new_ktime"
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?
FBX 2019.5 (file version 7700) introduced a new number of "ktimes" per
second to more accurately support some animation frame rates. The new
value is an opt-in until FBX version 8000, where it should then become
the default.
The importer will now look for new the header version and flag
specifying to opt in to the new FBX_KTIME value.
The exporter is unaffected because it always writes an FBX version 7400
binary.
The FBX SDK documentation lists the "ktimes" per second change in the new FBX 2019.5 features: https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_welcome_to_the_fbx_sdk_what_new_fbx_sdk_2019_html
While I have not yet encountered a version 7700 or newer .fbx file that uses the opt-in (only those which opt-out), the timecode to opt-in,
FBXSDK_TC_STANDARD_DEFINITION
, is0
according to the FBX SDK documentation.Note that FBX version 8000 does not exist yet, so I'm assuming that the documentation, that says version 8000 will use the new "ktimes" per second by default, will be correct in the future.
Attached is an animated cube .fbx exported from Blender and a version that I edited to use version 7700 and the opt-in (converting the times of each animation frame to the new "ktimes" so that the resulting animation is the same).
Both of these .fbx should be identical when imported, but without this patch
FBXAnimTCTest0
will import with the wrong frame times.LGTM, thanks.