-
Notifications
You must be signed in to change notification settings - Fork 52
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
[wip] Added transparent mode #336
Conversation
Signed-off-by: Atharva Pusalkar <[email protected]>
Signed-off-by: Atharva Pusalkar <[email protected]>
Signed-off-by: Atharva Pusalkar <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #336 +/- ##
==========================================
- Coverage 57.92% 57.70% -0.23%
==========================================
Files 166 166
Lines 16433 16522 +89
==========================================
+ Hits 9519 9534 +15
- Misses 6914 6988 +74
Continue to review full report at Codecov.
|
TODO
|
transparency settings can be set through the Material class. Is it not working for your needs? |
I wanted to set the transparency for a particular visual rather than a material being used by multiple visuals, similar to the |
I see. To do that, we need to make sure the material that each visual has is unique. That's done when the material is set, i.e.
Then it should only affect that particular visual. It's the same idea that's implemented in gazebo classic, except the transparency logic is being handled in the Material class instead of the Visual class. |
This would be a better approach. I think we can move the transparency logic to ign-gazebo (since the material is cloned for each visual) -
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atharva-18, is this ready to merge?
Transparency test is failing on MacOS
@ahcorde I have moved the transparency logic to |
Thanks, @atharva-18 . Does this mean this PR can be closed? |
Yes, we can close this PR. |
🎉 New feature
Summary
Adds transparent mode to visuals
Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge