[vtkusers] Transparent Viewport

David E DeMarle dave.demarle at kitware.com
Mon Aug 18 22:18:11 EDT 2014


Looking at you code, I'm suspicious of the single mapper/actor going into
two different renderers. Try splitting at the mapper level. Ie, one sphere
source, feeds 2 mappers, each of which feeds its own actor, each goes into
its own renderer.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Aug 8, 2014 at 5:59 PM, Alireza Mehrtash <mehrtash at bwh.harvard.edu>
wrote:

> I tried that but it gives:
> vtkRendererCollection (0x8a6be0): Invalid layer for renderer: not rendered.
>
>
>
> On Fri, Aug 8, 2014 at 5:50 PM, David E DeMarle <dave.demarle at kitware.com>
> wrote:
>
>> Call SetLayer(1) on the overlay layer.
>> On Aug 8, 2014 5:27 PM, "Alireza Mehrtash" <mehrtash at bwh.harvard.edu>
>> wrote:
>>
>>> Hi All,
>>>
>>> I have two renderers in a render window ​with one of them as a bottom
>>> left viewport (the code and the picture are attached). I want the viewport
>>> renderer to be transparent exactly like the vtk oreientation marker [1]. I
>>> would appreciate if you help me achieving this.
>>>
>>> Thanks,
>>> Alireza
>>>
>>>
>>> [1]
>>> http://www.itk.org/Wiki/VTK/Examples/Cxx/Widgets/OrientationMarkerWidget
>>>
>>> _______________________________________________
>>> 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://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>>  The information in this e-mail is intended only for the person to whom
>> it is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140818/1fea67a8/attachment.html>


More information about the vtkusers mailing list