[vtkusers] Strange actor disappearing / coloring

alethea alethea at anatomage.com
Wed Dec 4 14:18:35 EST 2013


For the benefit of any who might have a similar problem, the fix was to
ShallowCopy both the vtkActor and vtkPolyDataMapper. Presumable because the
mapper is duplicated, the OpenGL displaylists, etc are duplicated for the
separate render window. Sharing OpenGL objects between separate windows was
the likely culprit.


alethea wrote
> I have a bug that has been popping up for a while now that is very
> strange, and I'm hoping to get some insight into where I might look to
> find a solution:
> 
> We create a modal dialog that has on the order of 10-50 actors that hold
> polydata.
> For some data sets, the first time this dialog is opened, some actors will
> appear to be missing, but extra polydata will show up in seemingly random
> locations that duplicates some of the visible polydata, colored with
> colors that were set for different actors. (For example, if the scene
> should have 2 spheres colored blue, and a box colored white, one of the
> spheres might be missing, and an extra blue box might show up randomly in
> the scene). Even stranger, the second time the dialog is opened, this bug
> is never present.
> 
> I have tried various combinations of actors, and clearing out the
> renderer, and have found nothing that will reliably fix this problem. One
> thing that I am not sure about, is if this problem is due to using the
> same actor in multiple renderers. The application has up to 4 renderers in
> the main window that are also displaying some of the actors show in the
> popup. I've read somewhere that reusing actors like this is bad, but if I
> understand correctly, I'd otherwise have to duplicate the entire
> polydata->mapper->actor pipeline for each actor I want to show multiple
> times, and I'd like to avoid this...
> 
> We're using mfc on win7, AMD Radeon HD 7770, with vtk 4.21 (yes I know
> that's way outdated, upgrading is on the list for this coming year)
> 
> 
> Any help would be greatly appreciated!
> -Alethea
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers





--
View this message in context: http://vtk.1045678.n5.nabble.com/Strange-actor-disappearing-coloring-tp5724802p5724844.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list