Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
121 stars 2 forks source link

FBX Import: animation uses normalized timeline #1462

Open ryanroye opened 4 months ago

ryanroye commented 4 months ago

Describe the bug?

When importing FBX files, the timeline is normalized for some reason. This makes any animations imported via FBX play very fast. The intended animation can seen by dividing the animation speed parameter by the FPS of the original file (IE: 1/30 = 0.033... for a 30 fps scene)

NOTES: This happens with FBX files exported from multiple platforms (I tested files from Blender, Maya, and Lightwave). This only affects recently imported stuff, things that were imported before the FBX update are not affected.

To Reproduce

1) Load the attached file (KeyTest_Blender.zip, 120 frame cube animation at 30 fps) using "CM" scale and observe fast playback. 2) Open Inspector panel and locate Keytest_Blender.fbx in the world. 3) Change the playback speed value from 1 to 0.033333333. This corrects the speed of the animation and illustrates the timeline assignment issue. KeyTest_Blender.zip

Expected behavior

Animations should automatically detect the playback speed based on the playback rate defined in the file.

Screenshots

No response

Resonite Version Number

2024.3.1.1178

What Platforms does this occur on?

Windows

What headset if any do you use?

Valve Index

Log Files

RYAN-PC - 2024.3.1.1178 - 2024-03-09 12_42_08.log

Additional Context

No response

Reporters

Business_Lawyer

shiftyscales commented 3 months ago

I suspect this might be related to similar assimp FBX issues we are experiencing like #813 and #1106.