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

Fix opacity of Collada meshes #1387

Merged

Conversation

rhaschke
Copy link
Contributor

Fixes an issue introduced in #1294 (e906f82):
Materials of Collada mesh models need to be cloned for each instance of a robot link.
Fixes #1385. @simonschmeisser, could you please verify?

Fixes an issue introduced in ros-visualization#1294 (e906f82):
Materials of Collada mesh models need to be cloned for each instance of a robot link.
{
// create a new material copy for each instance of a RobotLink
Ogre::MaterialPtr mat = Ogre::MaterialPtr(new Ogre::Material(nullptr, material_name, 0, ROS_PACKAGE_NAME));
*mat = *sub->getMaterial();
Copy link
Contributor

Choose a reason for hiding this comment

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

I have to admit I don't quite understand this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Create a new material instance and copy the existing material into this instance.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, ok, thanks, I was reading to much into the first line/constructor

@simonschmeisser
Copy link
Contributor

@rhaschke good job, works as expected now. Thanks!

@rhaschke rhaschke merged commit f9b357f into ros-visualization:melodic-devel Jul 16, 2019
@rhaschke rhaschke deleted the fix-material-handling branch July 16, 2019 07:42
@rhaschke rhaschke mentioned this pull request Sep 1, 2019
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.

For collada meshes alpha of multiple RobotModel interfere
2 participants