[vtkusers] Bug in vtkOpenGLFreeTypeTextMapper::RenderOverlay(): prop picking leads to incorrect hidden surface removal

Patric Weis Patric.Weis at Mycrona.de
Tue Nov 11 08:30:25 EST 2003


Dear all,

there seems to be a bug in vtkOpenGLFreeTypeTextMapper::RenderOverlay().

Problem description
-------------------
After picking in a scene with 3D and 2D actors the depth buffering
for hidden surface removal does not work anymore.

The problem occurs under following circumstances:
- The render scene contains a mix of vtkProp3D and vtkActor2D objects.
- Picking with vtkPropPicker.

The attached file (DepthFuncBugDemo.zip) contains a tcl script that
demonstrates the problem. Start the script, rotate the cube and pick
somewhere in the render area by pressing the key 'p'. Now you can see
that the hidden parts of the cube have not been removed.

Solution
--------
In file vtkOpenGLFreeTypeTextMapper.cxx (Revision: 1.35,
2003/11/10 21:05:22) insert the following statement after
line 351:

     glDepthFunc(GL_LEQUAL);


Hope I'm right! ;)

Patric Weis
MYCRONA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DepthFuncBugDemo.zip
Type: application/x-zip-compressed
Size: 715 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031111/5d94be72/attachment.bin>


More information about the vtkusers mailing list