Incorrect hidden surface removal after prop picking
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.
See URL below for 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);