Skip to content

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

Description

@MPierer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions