vtkOpenGLRenderWindow::SetRGBACharPixelData overwrite into the z-buffer
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When using vtkInteractorStyleRubberBandHelper3D (see example attached) the z-buffer is set entirely to the value 0.
The reason is that vtkInteractorStyleRubberBandHelper3D use vtkOpenGLRenderWindow::SetRGBACharPixelData which do not only modify color as expected but also zbuffer. The write on z-buffer and the z-test must be desactivated (to be sure to overwrite on the color buffer) using :
glDepthMask(GL_FALSE); glDisable(GL_DEPTH_TEST);
I made a patch that fix this problem adding this two lines on the begin of the method and their opposites on the end.
Best Regards.