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

Fixup assimp mesh loading #1689

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

rhaschke
Copy link
Contributor

This is a fixup of #1685, fixing a regression revealed in #1688.

Looks like assimp's root node is only sometimes, but not always applying a rotation to y-up orientation.
This fixup, drops the rotation part of the root transform, but keeps the scaling (and position offset).

This is a fixup of 7085a14.
Obviously, assimp's root node is only sometimes, but not always applying a rotation
to y-up orientation. This fixup, drops the rotation part of the root transform,
but keeps the scaling (and position offset).
@rhaschke rhaschke linked an issue Dec 16, 2021 that may be closed by this pull request
@knorth55
Copy link

knorth55 commented Dec 16, 2021

I checked this PR, and this PR solves #1688

Before: rviz 1.13.22
Screenshot from 2021-12-16 19-06-06

After: this PR
Screenshot from 2021-12-16 19-12-45

@simonschmeisser
Copy link
Contributor

You might want to cross check with the ogre assimp plugin here just to be sure: https://github.com/OGRECave/ogre/blob/ff55ef7b272fa0fb5be935ac41af67f5d6e15bf4/PlugIns/Assimp/src/AssimpLoader.cpp#L377

Copy link
Contributor

@simonschmeisser simonschmeisser left a comment

Choose a reason for hiding this comment

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

Sorry for doing a source-only review last time. Can confirm this was broken before and works now. Wasn't that hard to run git rebase --onto origin/noetic-devel origin/melodic-devel to be able to test it on noetic after all ...

@rhaschke rhaschke merged commit 8805a6a into ros-visualization:melodic-devel Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Meshes rendering in the wrong orientation
3 participants