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 reflectance values for objects without a reflectance map #2833

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Aug 25, 2020

When generating reflectance values for depth cameras, visuals in the scene without a reflectance map is assigned a black material so they show up as 0s in the image output. However, it was found that the material used Gazebo/Black is not a pure black color as it has a small amount specular component and the final color is also affected by lighting. So the resulting reflectance output is non-zero. This PR creates a new Gazebo/BlackUnlit material that is true black and updates the reflectance generation code to use this material instead.

Signed-off-by: Ian Chen ichen@osrfoundation.org

Signed-off-by: Ian Chen <ichen@osrfoundation.org>
@iche033 iche033 requested a review from ahcorde August 25, 2020 23:55
@iche033 iche033 merged commit 2f3024d into gazebo9 Sep 2, 2020
@iche033 iche033 deleted the reflectance_black branch September 2, 2020 02:11
@scpeters
Copy link
Member

scpeters commented Sep 3, 2020

@scpeters
Copy link
Member

scpeters commented Sep 4, 2020

I think this caused a regression in the OgreLog/LogError test

17:22:34: Compiler error: unknown error in gazebo.material(247): token "lighting" is not recognized

{
technique
{
lighting off
Copy link
Member

Choose a reason for hiding this comment

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

this line is causing the INTEGRATION_ogre_log test to fail:

17:22:34: Compiler error: unknown error in gazebo.material(247): token "lighting" is not recognized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for catching this. Addressed in #2840

@iche033 iche033 mentioned this pull request Sep 18, 2020
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.

3 participants