MantisBT - VTK
View Issue Details
0010487VTK(No Category)public2010-03-30 09:272016-08-12 09:55
Eric Monson 
Jeff Baumes 
normalminoralways
closedmoved 
Mac & Linux10.6 & Ubuntu 9.10
 
 
0010487: Hardware Selector gives unreliable results with textured polygons
I was creating a vtkIcicleView with textured polygons, but started to see weird selection behavior depending on the texture image I was using.

Finally I figured out that the Hardware Selector reports inconsistent cell IDs when the texture image is too dark. With white around the periphery (on my Mac with Cocoa and CVS VTK it only needs to be a one-pixel white border) the selector works fine. As the image gets darker it starts to report erroneous IDs. When the image is too dark it can't "see" any polys at all.
I'm attaching a zip file which contains a Python script and four PNG images to show the effect. This was the simplest example I could come up with to reproduce the problem using "off the shelf" VTK.

You need to set the path for the images and VTK source in the script, and then uncomment which image you want to use for the test. Then, you click on the rectangles of the icicle view (not really using vtkIcicleView here, just a pipeline and a vtkRenderView) and look at the terminal for a printout of the cell IDs that the hardware selector reports.

The comments at the beginning of the script summarize what you should see:

# IDs in tree should be (and are reported with Good image as):
#
# 0 0 0 0 0 0 0 0 0
# 1 2 3 4 4 4 8 9 10
# 5 6 7

# Unreliable reports them as:
#
# 0 0 0 0 0 0 0 0 0
# 0 1 2 3 3 3 6 6 7
# 3 4 5

# Bad can't see any nodes to select at all
No tags attached.
zip HardwareSelectorTest.zip (28,756) 2010-03-30 09:27
https://www.vtk.org/Bug/file/7998/HardwareSelectorTest.zip
Issue History
2010-03-30 09:27Eric MonsonNew Issue
2010-03-30 09:27Eric MonsonFile Added: HardwareSelectorTest.zip
2010-03-30 10:19Jeff BaumesStatusbacklog => tabled
2010-03-30 10:19Jeff BaumesAssigned To => Jeff Baumes
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037157
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0037157)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.