Skip to content

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

Merged
kimkulling merged 2 commits into
assimp:masterfrom
JulianKnodt:master
Nov 7, 2023
Merged

kimkulling merged 2 commits into
assimp:masterfrom
JulianKnodt:master

Conversation

@JulianKnodt

@JulianKnodt JulianKnodt commented Oct 16, 2023 •

Copy link
Copy Markdown
Contributor

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 force-pushed the master branch 2 times, most recently from 7e4f809 to 61c7d40 Compare October 17, 2023 04:42
@JulianKnodt
JulianKnodt marked this pull request as ready for review October 17, 2023 04:42
@JulianKnodt

Copy link
Copy Markdown
Contributor Author

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

Comment thread code/AssetLib/FBX/FBXConverter.cpp Resolved
Comment thread code/AssetLib/FBX/FBXExporter.cpp Resolved
Comment thread code/AssetLib/FBX/FBXExporter.cpp Resolved
Comment thread code/AssetLib/FBX/FBXExporter.cpp 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`

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

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
@kimkulling

Copy link
Copy Markdown
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