Imported FBX Animation (coming from Unreal Engine) makes Blender switch to 25 FPS #50399

Closed
opened 2017-01-09 13:00:29 +01:00 by simon · 9 comments

System Information
Windows 7 / NVidia GeForce GTX 960

Blender Version
Broken: 2.87a e8299c8

I created a cube with 2 bones and a simple 200 frames-animation in 3Ds Max and exported the result as FBX. I can import this FBX into Blender and Unreal and everything is fine. BUT when I export this cube (+animation) again out of Unreal into a new FBX and import this new file into Blender, the dimensions settings are forced to 25 FPS even if I set 30 FPS before.

Exact steps for others to reproduce the error

  1. Get the example FBX files: https://www.dropbox.com/sh/0pzy3bf6oj2nqak/AACH7VM8cnF0HOjVSNfS9Njra?dl=0
  2. Start Blender
  3. Set your framerate in the dimensions panel to 30 FPS
  4. Import cube_01_anim_from3DsMax.FBX - everything is fine (this cube was exported directly from 3Ds Max)
  5. Delete the cube and now import cube_01_anim_fromUnreal.FBX - see that the framerate is now 25 FPS and the keys don't span from 0-200 but 0-170 (this cube was created in 3Ds Max, imported as FBX into Unreal and then exported as FBX from Unreal into a new file)

Note: This bug was also reported in the Unreal Engine Forum but I'm not sure on which side the bug is created - Blender or Unreal.
https://answers.unrealengine.com/questions/544386/unreal-animation-export-makes-blender-switch-to-25.html

System Information Windows 7 / NVidia GeForce GTX 960 Blender Version Broken: 2.87a e8299c8 I created a cube with 2 bones and a simple 200 frames-animation in 3Ds Max and exported the result as FBX. I can import this FBX into Blender and Unreal and everything is fine. BUT when I export this cube (+animation) again out of Unreal into a new FBX and import this new file into Blender, the dimensions settings are forced to 25 FPS even if I set 30 FPS before. **Exact steps for others to reproduce the error** 1. Get the example FBX files: https://www.dropbox.com/sh/0pzy3bf6oj2nqak/AACH7VM8cnF0HOjVSNfS9Njra?dl=0 2. Start Blender 3. Set your framerate in the dimensions panel to 30 FPS 4. Import cube_01_anim_from3DsMax.FBX - everything is fine (this cube was exported directly from 3Ds Max) 5. Delete the cube and now import cube_01_anim_fromUnreal.FBX - see that the framerate is now 25 FPS and the keys don't span from 0-200 but 0-170 (this cube was created in 3Ds Max, imported as FBX into Unreal and then exported as FBX from Unreal into a new file) Note: This bug was also reported in the Unreal Engine Forum but I'm not sure on which side the bug is created - Blender or Unreal. https://answers.unrealengine.com/questions/544386/unreal-animation-export-makes-blender-switch-to-25.html
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @BlenderSimon

Added subscriber: @BlenderSimon

Added subscriber: @mont29

Added subscriber: @mont29

I’d expect that to be Unreal issue, they most likely do not write correctly the FPS settings (would be TimeMode and/or CustomFrameRate settings in GlobalSettings node).

I’d expect that to be Unreal issue, they most likely do not write correctly the FPS settings (would be `TimeMode` and/or `CustomFrameRate` settings in `GlobalSettings` node).
Author

In #50399#411651, @mont29 wrote:
I’d expect that to be Unreal issue, they most likely do not write correctly the FPS settings (would be TimeMode and/or CustomFrameRate settings in GlobalSettings node).

I thought that too but in this case 3Ds Max shouldn't be able to read the correct 30 FPS of that file which it does. :(

> In #50399#411651, @mont29 wrote: > I’d expect that to be Unreal issue, they most likely do not write correctly the FPS settings (would be `TimeMode` and/or `CustomFrameRate` settings in `GlobalSettings` node). I thought that too but in this case 3Ds Max shouldn't be able to read the correct 30 FPS of that file which it does. :(

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2017-01-16 10:24:26 +01:00

OK, so checked the files, Unreal one has TimeMode set to 0, aka eDEFAULT_MODE, aka 'use the frame rate you want', so Blender and 3DSMax are free to do what they want here am afraid (at least official docs says nothing special about this mode).

3DS one has TimeMode set to 6, aka eFRAMES3030 (aka black & white NTSC), which we can interpret correctly.

So definitively sounds like UE4 bug to me, when exporting animation you should always set an explicit framerate! Thanks for the report anyway.

OK, so checked the files, Unreal one has `TimeMode` set to 0, aka `eDEFAULT_MODE`, aka 'use the frame rate you want', so Blender and 3DSMax are free to do what they want here am afraid (at least [official docs](http://download.autodesk.com/us/fbx/SDKdocs/FBX_SDK_Help/files/fbxsdkref/class_k_time.html#98b6d3b540247af8577ebac60b4fbe64) says nothing special about this mode). 3DS one has `TimeMode` set to 6, aka `eFRAMES3030` (aka black & white NTSC), which we can interpret correctly. So definitively sounds like UE4 bug to me, when exporting animation you should always set an explicit framerate! Thanks for the report anyway.

Added subscriber: @ZalitZ

Added subscriber: @ZalitZ

In case you really need to import from UE4 with the correct framerate , I found a dirty workaround.
Export your FBX from UE4 in ASCII format. Open the file in a text editor and search for TimeMode (In the Global Settings category) :pycharm64_Pb3nMJHyBq.png
From there, change the 0 at the end to whatever number suits your needs, see the official docs to know which number to use. Save your file.
chrome_n39B1E6q2t.png
The number corresponds to the list and starts at 0. I needed to import a 60fps fbx so I replaced the 0 with a 3.
But Blender doesn't support ASCII so you need to convert your fbx into a binary one. Luckily, Autodesk provides a free converter there. I had to open Firefox to open the link for some reason. Now install the converter and convert your modified ASCII to a binary fbx.
Import in Blender and it should work !
I really hope it will be fixed one day. I didn't try the Unreal to Blender Addon from this video from Unreal Official Youtube channel. It could work .

In case you really need to import from UE4 with the correct framerate , I found a dirty workaround. Export your FBX from UE4 in ASCII format. Open the file in a text editor and search for TimeMode (In the Global Settings category) :![pycharm64_Pb3nMJHyBq.png](https://archive.blender.org/developer/F9000382/pycharm64_Pb3nMJHyBq.png) From there, change the 0 at the end to whatever number suits your needs, see the [official docs ](http://download.autodesk.com/us/fbx/SDKdocs/FBX_SDK_Help/files/fbxsdkref/class_k_time.html#98b6d3b540247af8577ebac60b4fbe64) to know which number to use. Save your file. ![chrome_n39B1E6q2t.png](https://archive.blender.org/developer/F9000394/chrome_n39B1E6q2t.png) The number corresponds to the list and starts at 0. I needed to import a 60fps fbx so I replaced the 0 with a 3. But Blender doesn't support ASCII so you need to convert your fbx into a binary one. Luckily, Autodesk provides a free converter [there](https://www.autodesk.com/developer-network/platform-technologies/fbx-converter-archives). I had to open Firefox to open the link for some reason. Now install the converter and convert your modified ASCII to a binary fbx. Import in Blender and it should work ! I really hope it will be fixed one day. I didn't try the Unreal to Blender Addon from [this video](https://youtu.be/JwRPDCetfcc) from Unreal Official Youtube channel. It could work .
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
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#50399
No description provided.