-
Notifications
You must be signed in to change notification settings - Fork 51
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 transparency over heightmap #811
Conversation
…or transparnecy objects Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-rendering6 #811 +/- ##
==================================================
- Coverage 77.76% 77.75% -0.02%
==================================================
Files 146 146
Lines 13418 13429 +11
==================================================
+ Hits 10435 10442 +7
- Misses 2983 2987 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Ian Chen <[email protected]>
ogre2/src/Ogre2Mesh.cc
Outdated
static_cast<Ogre::HlmsPbsDatablock *>(derived->Datablock())); | ||
auto datablock = | ||
static_cast<Ogre::HlmsPbsDatablock *>(derived->Datablock()); | ||
if (databock) |
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.
if (databock) | |
if (datablock) |
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.
oops fixed. 3312c33
Signed-off-by: Ian Chen <[email protected]>
🦟 Bug fix
Fixes #789
Summary
Semi-transparent objects were always rendered behind the heightmap as seen in #789. This PR fixes the issue by setting a new render queue for objects with transparency as recommended in https://forums.ogre3d.org/viewtopic.php?t=96950
To test with gazebo:
Select Translate tool and click on any of the models. You should see the RGB axes rendered properly over the heightmap.
Right click on the model -> View > Transparent. The model should also be rendered properly over heightmap
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.