[vtkusers] vtkPropPicker not picking

Will Schroeder will.schroeder at kitware.com
Thu Aug 10 07:59:08 EDT 2000


Hi David-

As I mentioned in a previous note, it appears that several PC boards do not
support standard OpenGL calls for picking. The native X rendering (i.e., text
and images not rendered with OpenGL) also does not work.

If you are trying to pick 3D props you can replace the vtkPropPicker 
with a vtkCellPicker, vtkPointPicker, or vtkPicker. But of course that
leaves out the 2D props.

We are looking into a software only solution (as an alternative) that will 
handle both 3D props and 2D props. If anyone has any ideas please 
let me know. What I'm thinking right now is to implement the GetBounds() 
method for 2D props (which currently returns NULL and should be 
implemented anyway). This bounds can then be used in conjunction 
with a picker to pick 2D props.

Thanks for the feedback.

Will

At 05:53 PM 8/10/00 +0930, David J. Netherway wrote:
>I accidently sent this to Will directly rather than to the list. Sorry
>Will. This is the same message now to list.
>
>Using last Friday's nightly vtk, pickTest.tcl works at home on my PII
>WinNT4 PC with a Matrox G400 graphics card,
>but not on the PIII WinNT4  PC with an NVidia GeForce 256 graphics card
>at work.
>
>Unsuccessful means that neither the text, assembly nor actor get
>highlighted.
>
>Has anyone been successful with pickTest.tcl on the GeForce card? I am
>trying to locate a working picking template so that I can
>get my applications that use picking to work again using the latest
>versions of vtk. For example, the picking in TkInteractor.tcl also does
>not work on the GeForce card, I am not sure about the Matrox card - will
>check tonight. The CellPicker being software based should not be
>affected by the type of graphics card but maybe by other changes going
>on with regard to the PropPicker.
>
>The problem  is:
>vtkCellPicker ActorPicker
>....
>ActorPicker Pick $x  [expr $WindowY - $y -1] 0.0 $CurrentRenderer
>[ActorPicker GetAssembly] never returns anything even when the previous
>line returns a 1 and the cellId is >= 0.
>
>Have others found this still functional?
>
>Thanks, David
>





More information about the vtkusers mailing list