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

Bug in ext_light_viewer_capture.cpp - depth image is black #145

Open
MPierer opened this issue Nov 6, 2024 · 1 comment
Open

Bug in ext_light_viewer_capture.cpp - depth image is black #145

MPierer opened this issue Nov 6, 2024 · 1 comment

Comments

@MPierer
Copy link

MPierer commented Nov 6, 2024

Hi, I noticed a problem in the ext_light_viewer_capture.cpp example.
When using the PIXEL_BUFFER readback option, the depth image is black.

Reason: The call to

depth_pixel_buffers[current]->copy_from_texture(viewer->depth_buffer(), GL_DEPTH_COMPONENT16, GL_FLOAT);

uses GL_DEPTH_COMPONENT16.
It should be GL_DEPTH_COMPONENT.

@MPierer MPierer changed the title BUG in ext_light_viewer_capture.cpp - depth image is black Bug in ext_light_viewer_capture.cpp - depth image is black Nov 6, 2024
@koide3
Copy link
Owner

koide3 commented Nov 10, 2024

Thanks for reporting the bug. I just fixed and pushed a fix #147.

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

No branches or pull requests

2 participants