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

Drop proprietary COLLADA scaling #1685

Merged

Conversation

rhaschke
Copy link
Contributor

As pointed out by @simonschmeisser in #1684 (comment), assimp should actually provide the correct scaling factor and it actually does: The scaling is embedded in the root node's transform, which was deliberately ignored.
Fixes #1665. @simonschmeisser and @peci1, could you please review and test?

assimp provides the scale via the scene's root transform.
... but still ignore y-up rotation introduced by assimp.
R^{-1}.T yields the scaling matrix. I don't see a reason to apply scaling
and then revert it via Normalize().
@rhaschke rhaschke changed the base branch from noetic-devel to melodic-devel November 26, 2021 22:08
@peci1
Copy link
Contributor

peci1 commented Nov 26, 2021

Thanks for the more proper fix. I confirm it solves the problem for me:

unpatched rviz with LANG=C
rviz_lang_c

patched rviz with LANG=cs_CZ.UTF-8
rviz_fixed

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.

Thanks for further investigating my suspicion! I love those all-red PRs that kill weird workarounds 👍

@simonschmeisser
Copy link
Contributor

@rhaschke friendly ping

@rhaschke rhaschke merged commit 7085a14 into ros-visualization:melodic-devel Dec 13, 2021
@rhaschke rhaschke deleted the drop-collada-scaling branch December 13, 2021 14:03
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.

Marker load mesh resource success, but not show in window?
3 participants