MantisBT - VTK
View Issue Details
0007236VTK(No Category)public2008-06-25 04:182013-04-05 19:57
Julian Ibarz 
David Cole 
normalmajoralways
closedfixed 
 
 
0007236: vtkOpenGLRenderWindow::SetRGBACharPixelData overwrite into the z-buffer
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.
No tags attached.
patch zbuffer.patch (831) 2008-06-25 04:18
https://www.vtk.org/Bug/file/6559/zbuffer.patch
? BugZBuffer.java (3,542) 2008-06-25 04:19
https://www.vtk.org/Bug/file/6560/BugZBuffer.java
Issue History
2008-06-25 04:18Julian IbarzNew Issue
2008-06-25 04:18Julian IbarzFile Added: zbuffer.patch
2008-06-25 04:19Julian IbarzFile Added: BugZBuffer.java
2008-06-25 10:16Dave DeMarleNote Added: 0012522
2008-08-12 14:34David ColeStatusbacklog => tabled
2008-08-12 14:34David ColeAssigned To => David Cole
2008-08-12 14:35David ColeStatustabled => @80@
2008-08-12 14:35David ColeResolutionopen => fixed
2008-08-12 14:35David ColeNote Added: 0012992
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:57Berk GeveciStatuscustomer review => closed

Notes
(0012522)
Dave DeMarle   
2008-06-25 10:16   
Applied patch.

[kalimdor:ParaView/develPV3/ParaView3] demarle% cvs commit -m "BUG: Don't clear z buffer during an area pick for consistancy with point pick. See bug 7236. Thanks: Julian Ibarz for the patch." VTK/Rendering/vtkOpenGLRenderWindow.cxx
Commit to directory "ParaView3/VTK/Rendering" lies in external project VTK
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkOpenGLRenderWindow.cxx,v <-- VTK/Rendering/vtkOpenGLRenderWindow.cxx
new revision: 1.98; previous revision: 1.97

Watching dashboards now...
(0012992)
David Cole   
2008-08-12 14:35   
Merged to VTK-5-2 also:

    /cvsroot/VTK/VTK/Rendering/vtkOpenGLRenderWindow.cxx,v <-- Rendering/vtkOpenGLRenderWindow.cxx
    new revision: 1.95.2.2; previous revision: 1.95.2.1