How to highlight the covered object?

Hello, guys!
I would like to highlight the object, if the object is covered by the other, it also can been saw.
In OpenGL, it use GL_DEPTH_TEST, I don’t know how to do in VTK, anyone knows?Thanks

I think this will serve you as starting point
https://gitlab.kitware.com/vtk/vtk/-/blob/master/Rendering/ContextOpenGL2/vtkOpenGLContextBufferId.cxx

I think the property should be used in single actor, instead of whole render window.

1 Like