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

Add depth map support for camera sensor #6125

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

clementinboittiaux
Copy link

Proposed change(s)

Add depth map support for camera sensor. Also add OpenEXR support for frame encoding.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

RGBD option has priority over Grayscale option. Compatibility should not be broken with previous versions.

The depth component is stored in the image alpha channel. Float RenderTexture and Texture32, as well as OpenEXR encoding ensure that depth is not compressed to 8-bits.

N.B. Adding compression flags to EXR encoding slows down the read/write rate.

Screencast.from.27-06-2024.09.43.00.webm

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2024

CLA assistant check
All committers have signed the CLA.

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.

2 participants