is there any way to visualize float depthBuffer in VTK? copyToFrameBuffer seems cannot work.

is there any way to visualize float depthBuffer in VTK, copyToFrameBuffer seems cannot work.
Thanks!

If you’re simply debugging, it’s not worth the trouble to capture the depth buffer via code. It can be error-prone and incorrect sometimes because of invalid formats and blit parameters.

The most simple method without writing any extra code in your application is to launch the application through Renderdoc and take a capture. You can visualize depth attachment in the FB output. See Quick Start — RenderDoc documentation for taking captures of graphics applications.

Ex - FBO color and depth attachments visualized for a cone.

thanks! beside renderDoc. while doing this by ourselves, seems must write custom shader to visualize it.
Thanks