[vtkusers] vtkPropPicker on an actor added to multiple renderers
Shashwath T.R.
trshash at gmail.com
Tue Jul 14 05:42:59 EDT 2009
Hello everyone,
I'm facing a strange problem with vtkPropPicker.
I've got four vtkRenderWindows, each with one renderer in it. These are to
be used for a CAD-like layout (Top, Side, Front and a free-rotation view,
splitting the available area into 4 quadrants). I'm adding the same actors
to each of these four renderers.
I listen to mouse events from all four interactors, and on mouse down, get
the poked renderer from the interactor that raised the event, and try to use
vtkPropPicker to pick the required actors from this renderer.
When I call PickProp on the prop picker, I get a message on the output
window from vtkWin32OpenGLRenderWindow:
ERROR: In ..\..\VTK-5.4.2\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 214
vtkWin32OpenGLRenderWindow (02088AF0): Attempting to call MakeCurrent for a
different window than the one doing the picking, this can causes crashes
and/or bad pick results
After a few tries, the application then crashes, raising an access
violation.
Can anyone help me with this?
Regards,
Shashwath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090714/54f325ec/attachment.htm>
More information about the vtkusers
mailing list