[vtkusers] Should I use one actor per renderer/renderwindow or can they share the same actor?

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Nov 1 12:52:02 EDT 2011


Humm,

in fact, you can have many actors for a single mapper and there is no
reason why you can't put the same actor to several renderers.
I've done it many time without any issue. Although I was not using LODActors...

Seb

On Tue, Nov 1, 2011 at 12:15 PM, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> No you can't shallow copy.. each actor would need its own mapper. Mappers
> can certainly not be shared. I don't think you can share the vtkProperty's
> either, if you are using Shaders since will then consume graphic resources.
>
>
> On Tue, Nov 1, 2011 at 9:26 PM, Bryn Lloyd <lloyd at itis.ethz.ch> wrote:
>>
>> Hi again,
>>
>>
>>
>> Actually, could I copy an actor using ShallowCopy in order to create
>> separate actors for each renderer?
>>
>>
>>
>> Else, how can I transfer (or even synchronize) the actor parameters in a
>> simple but complete way? I am thinking of general vtkProp(s), not just
>> vtkActor.
>>
>>
>>
>> Thanks for any advice.
>>
>>
>>
>> --
>>
>> Bryn
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> From: Karthik Krishnan [mailto:karthik.krishnan at kitware.com]
>> Sent: Tuesday, November 01, 2011 3:58 PM
>> To: Bryn Lloyd
>> Cc: vtk
>> Subject: Re: [vtkusers] Should I use one actor per renderer/renderwindow
>> or can they share the same actor?
>>
>>
>>
>> Even if it did work, it'd be quite fragile. I can imagine timestamp checks
>> going wrong (these are used in the mapper to rebuild the geometric
>> primitives etc).
>>
>>
>>
>> I can see LODActors getting messed up, when computing last render time
>> from a renderer, not realizing that its not the same renderer they rendered
>> on previously.
>>
>>
>>
>> Its best to create an actor per render window.
>>
>>
>>
>> --
>>
>> karthik
>>
>> On Tue, Nov 1, 2011 at 4:24 PM, Bryn Lloyd <lloyd at itis.ethz.ch> wrote:
>>
>> Hi
>>
>>
>>
>> I am working on an application with multiple render windows.
>>
>>
>>
>> Is it SAFE to use the same actor for each renderer/window, or should I
>> create an actor per renderer?
>>
>>
>>
>> BTW. Currently it is OK if I have the same parameters (color, visibility,
>> etc) in each renderer.
>>
>> Thanks for any suggestions
>>
>>
>>
>> Bryn
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list