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

Rm unnecessary deg->radian conversion in FBX exporter #5281

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

JulianKnodt
Copy link
Contributor

@JulianKnodt JulianKnodt commented Oct 16, 2023

It seems that rotation matrices later expect radians. This conversion breaks it, and was validated on the conversion of cesium_man.glb --> cesium_man.fbx

cc @ronenv-ten @gongminmin
closes #5137

EDIT: actually, I found that for animated meshes, this works. For meshes without animations, this seems to break things. Will continue to investigate further.

EDIT 2: This actually can be fixed entirely within FBXConverter.cpp by converting deg to rad on 3219, 3242, and 3250, will get to it tonight.

@JulianKnodt JulianKnodt changed the title Fix incorrect deg->radian conversion Fix incorrect deg->radian conversion in FBX exporter Oct 16, 2023
@JulianKnodt JulianKnodt changed the title Fix incorrect deg->radian conversion in FBX exporter Rm unnecessary deg->radian conversion in FBX exporter Oct 16, 2023
@JulianKnodt JulianKnodt marked this pull request as draft October 16, 2023 22:46
@JulianKnodt JulianKnodt marked this pull request as ready for review October 17, 2023 04:42
@JulianKnodt
Copy link
Contributor Author

I'll need to double check tmrw if this is correct, but should be good to review now.

code/AssetLib/FBX/FBXConverter.cpp Outdated Show resolved Hide resolved
code/AssetLib/FBX/FBXExporter.cpp Outdated Show resolved Hide resolved
code/AssetLib/FBX/FBXExporter.cpp Outdated Show resolved Hide resolved
code/AssetLib/FBX/FBXExporter.cpp Outdated Show resolved Hide resolved
It seems that rotation matrices later expect radians.
This conversion breaks it, and was validated on the conversion of
`cesium_man.glb` --> `cesium_man.fbx`
Copy link
Member

@kimkulling kimkulling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@kimkulling kimkulling merged commit 28ab0a0 into assimp:master Nov 7, 2023
11 checks passed
@kimkulling
Copy link
Member

-merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Bug: Exported FBX with skeleton is corrupted
2 participants