FBX exporter doesn't export Constant Interpolation keyframes #76928

Open
opened 2020-05-21 00:53:22 +02:00 by Justin Jensen · 13 comments

System Information
Operating system: Windows 10 Pro
Graphics card: NVidia Quadro M1200

Blender Version
Broken: 2.82a

Short description of error
The FBX exporter does not export Constant Interpolation keyframes. Instead, they're converted to Linear Interpolation

Exact steps for others to reproduce the error
Open the default scene.
Add a few location keyframes to the cube
Change each keyframe's interpolation type to Constant
Export as FBX
Import into Unity or back into Blender. The keyframes now have Linear Interpolation

**System Information** Operating system: Windows 10 Pro Graphics card: NVidia Quadro M1200 **Blender Version** Broken: 2.82a **Short description of error** The FBX exporter does not export Constant Interpolation keyframes. Instead, they're converted to Linear Interpolation **Exact steps for others to reproduce the error** Open the default scene. Add a few location keyframes to the cube Change each keyframe's interpolation type to Constant Export as FBX Import into Unity or back into Blender. The keyframes now have Linear Interpolation
Author

Added subscriber: @JustinJensen

Added subscriber: @JustinJensen

#94855 was marked as duplicate of this issue

#94855 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Could you provide a simple file showing the problem?

Could you provide a simple file showing the problem?
Author

simple_constant_interpolation_example.blend

simple_constant_interpolation_example.fbx

I've attached two files:
The first is a .blend file with an extremely simple animation. I want the cube to jump to the right on frame 20, then back to the origin on frame 40. No interpolation.
The second file is this cube exported to FBX. Upon first inspection, it kind of looks like the keyframes use Constant interpolation, but it's actually just two keyframes on adjacent frames with linear interpolation between them. This is a problem when I bring this 24fps animation into a 60fps application like Unity.

[simple_constant_interpolation_example.blend](https://archive.blender.org/developer/F8546944/simple_constant_interpolation_example.blend) [simple_constant_interpolation_example.fbx](https://archive.blender.org/developer/F8546943/simple_constant_interpolation_example.fbx) I've attached two files: The first is a .blend file with an extremely simple animation. I want the cube to jump to the right on frame 20, then back to the origin on frame 40. No interpolation. The second file is this cube exported to FBX. Upon first inspection, it kind of looks like the keyframes use Constant interpolation, but it's actually just two keyframes on adjacent frames with linear interpolation between them. This is a problem when I bring this 24fps animation into a 60fps application like Unity.

Added subscribers: @dfelinto, @iss

Added subscribers: @dfelinto, @iss

This looks like a limitation of exporting script. By doing some search for this I have found 96a5167969 implementing this feature but it has been reverted. I am not familiar with fbx format, so I can't see immediately what the issue was.

It's not clear to me if you wanted to have a go at implementing this. If you do, you can discuss possible solutions on https:*devtalk.blender.org or ask @dfelinto on https:*blender.chat/channel/blender-coders

Otherwise we could consider this a known issue or close as accidental feature request.

This looks like a limitation of exporting script. By doing some search for this I have found 96a5167969 implementing this feature but it has been reverted. I am not familiar with fbx format, so I can't see immediately what the issue was. It's not clear to me if you wanted to have a go at implementing this. If you do, you can discuss possible solutions on https:*devtalk.blender.org or ask @dfelinto on https:*blender.chat/channel/blender-coders Otherwise we could consider this a known issue or close as accidental feature request.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

If @dfelinto was already on it, I'd say we keep as Known Issue.
quoting from the commit message:

I need to tackle this differently.

If @dfelinto was already on it, I'd say we keep as Known Issue. quoting from the commit message: > I need to tackle this differently.

Added subscriber: @AlphaEndgame

Added subscriber: @AlphaEndgame

This comment was removed by @AlphaEndgame

*This comment was removed by @AlphaEndgame*
Member

Added subscribers: @bel.petr, @PratikPB2123

Added subscribers: @bel.petr, @PratikPB2123
Sign in to join this conversation.
No Milestone
No project
No Assignees
7 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#76928
No description provided.