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

[Metal] Fix depth camera sensor #535

Conversation

srmainwaring
Copy link
Contributor

🦟 Bug fix

Follow up to #498

Summary

This fix adds default parameters to the Metal fragment shader definitions in the depth camera and selection buffer materials.

A depth camera would not render correctly (black screen) on macOS using Metal shaders. This can be reproduced either using the depth_camera example or by including a depth_camera sensor in a SDF model and displaying the image in Gazebo.

After the PR the depth_camera example and Image display are working correctly.

depth_camera_issue_fix

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

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.

Add default params for fragment shaders in depth camera and selection buffer materials

Signed-off-by: Rhys Mainwaring <[email protected]>
@codecov
Copy link

codecov bot commented Jan 15, 2022

Codecov Report

Merging #535 (9954846) into ign-rendering6 (2eb1037) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-rendering6     #535   +/-   ##
===============================================
  Coverage           54.39%   54.39%           
===============================================
  Files                 198      198           
  Lines               20087    20087           
===============================================
  Hits                10926    10926           
  Misses               9161     9161           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2eb1037...9954846. Read the comment docs.

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

looks good to me.

@iche033 iche033 merged commit c10c303 into gazebosim:ign-rendering6 Jan 18, 2022
@srmainwaring srmainwaring deleted the pr/ign-rendering6-depth-camera-metal branch January 26, 2022 12:52
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants