Import-Export fbx causes rotation to go from 0 to -0.000009 #95762

Closed
opened 2022-02-14 09:07:46 +01:00 by Evgeny · 10 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.89

Blender Version
Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: blender/blender@dc2d180181
Worked: (newest version of Blender that worked as expected)
tested in versions: 3.0.1 2.91 2.79

Short description of error
After exporting a cube or any other object into fbx and importing the same file back, an unexpected rotation transformation -0.000009 appears on the object.

Exact steps for others to reproduce the error

  • Open default scene
  • Select the cube
  • Run export fbx from the File > Export menu and select the "selected only" option
  • Run import fbx from the File > Import menu and choose the file.
  • The imported cube has an X rotation of -0.000009 degrees

image.png

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.89 **Blender Version** Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: `blender/blender@dc2d180181` Worked: (newest version of Blender that worked as expected) tested in versions: 3.0.1 2.91 2.79 **Short description of error** After exporting a cube or any other object into fbx and importing the same file back, an unexpected rotation transformation -0.000009 appears on the object. **Exact steps for others to reproduce the error** - Open default scene - Select the cube - Run export fbx from the `File > Export` menu and select the "selected only" option - Run import fbx from the `File > Import` menu and choose the file. - The imported cube has an X rotation of -0.000009 degrees ![image.png](https://archive.blender.org/developer/F12866584/image.png)
Author

Added subscriber: @madjon1990

Added subscriber: @madjon1990
Member

Added subscriber: @wannes.malfait

Added subscriber: @wannes.malfait
Member

Did you mean the FBX file format? I don't know what you mean with FBH. The issue could just be something to do with floating point errors but I'm not sure.

Did you mean the FBX file format? I don't know what you mean with FBH. The issue could just be something to do with floating point errors but I'm not sure.
Author

Yes fbx format. Yes with floating point error I think.

Yes fbx format. Yes with floating point error I think.
Author

image.png just export any mesh, then import it back and rotation appears on it

![image.png](https://archive.blender.org/developer/F12866548/image.png) just export any mesh, then import it back and rotation appears on it
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Can confirm. I don't know if this is expected/unavoidable behaviour. Could any of the developers confirm this?

Can confirm. I don't know if this is expected/unavoidable behaviour. Could any of the developers confirm this?
Wannes Malfait changed title from Export an unexpected rotation transformation -0.000009 to Import-Export fbx causes rotation to go from 0 to -0.000009 2022-02-14 12:53:08 +01:00

Added subscriber: @deadpin

Added subscriber: @deadpin

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Right, this is due to floating point inaccuracy from the FBX exporter/importer rotating the object from Blender's Z-up, Y-forward rotation to the rotation specified in the Export settings which is by default Y-up, -Z-forward.

If you change the Export settings to use Z-up, Y-forward and re-import that, you won't see the error (at least with this simple setup). Though other software which uses a different rotation scheme might see a similar deviation.

Right, this is due to floating point inaccuracy from the FBX exporter/importer rotating the object from Blender's Z-up, Y-forward rotation to the rotation specified in the Export settings which is by default Y-up, -Z-forward. If you change the Export settings to use Z-up, Y-forward and re-import that, you won't see the error (at least with this simple setup). Though other software which uses a different rotation scheme might see a similar deviation.
Sign in to join this conversation.
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-addons#95762
No description provided.