Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Exported FBX animation flickers in Maya #5482

Open
JulianKnodt opened this issue Mar 1, 2024 · 2 comments
Open

Bug: Exported FBX animation flickers in Maya #5482

JulianKnodt opened this issue Mar 1, 2024 · 2 comments
Labels
Bug Global flag to mark a deviation from expected behaviour FBX Bugs related to the FBX format

Comments

@JulianKnodt
Copy link
Contributor

Describe the bug
Animations exported to FBX flicker when reimported back into Maya. The exact same file does not cause any flickering when imported into Blender. Not entirely sure what the cause of the bug is, but I suspect that it may be because there's some setting that is not being set, and Blender just ignores it and sets a good default. When the file is exported from Blender and imported into Maya, the file then looks correct.

To Reproduce
I can't submit the mesh, but it's just import and export with the given mesh.

Expected behavior
The animation should be identical to the input, without said flickering

Screenshots
image
image
image

Platform (please complete the following information):
Maya 2024

Additional context
I also manually checked if there were NaNs in the FBX export due to decomposing the rotation, but I didn't see any. It also could be that Blender is doing some manual cleanup or, populates the bind pose differently.

I get a warning when importing into Maya that the bind pose is not set so it automatically generates one, but I found that the automatically generated bind pose looks correct.

When importing the FBX exported from Maya into Blender, the animation also looks correct.

@JulianKnodt JulianKnodt added the Bug Global flag to mark a deviation from expected behaviour label Mar 1, 2024
@JulianKnodt
Copy link
Contributor Author

JulianKnodt commented Mar 1, 2024

Found the cause, seems like when converting a matrix to euler angles, it will sometimes wrap and produce incorrect values. Seems like Blender automatically will do shortest path conversion.

https://eecs.qmul.ac.uk/~gslabaugh/publications/euler.pdf

@JulianKnodt
Copy link
Contributor Author

JulianKnodt commented Mar 5, 2024

The fix is to compute the nearest angle just by adding 360 degrees
image

image

I may add a fix sometime soon.

@kimkulling kimkulling added the FBX Bugs related to the FBX format label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour FBX Bugs related to the FBX format
Projects
None yet
Development

No branches or pull requests

2 participants