koide3 / iridescence

3D visualization library for rapid prototyping of 3D algorithms
https://koide3.github.io/iridescence/
MIT License
318 stars 34 forks source link

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

Open MPierer opened 3 weeks ago

MPierer commented 3 weeks ago

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 https://github.com/koide3/iridescence/blob/8451c81e2dd5c6fcb3b86ee953f54ee6da37672f/src/example/ext_light_viewer_capture.cpp#L61 uses GL_DEPTH_COMPONENT16. It should be GL_DEPTH_COMPONENT.

koide3 commented 2 weeks ago

Thanks for reporting the bug. I just fixed and pushed a fix https://github.com/koide3/iridescence/pull/147.