[vtkusers] Transparant polydata

Malcolm Drummond malcolm at geovision.co.za
Thu Sep 19 12:50:13 EDT 2002

Hi Christian

You can get the desired effect using unsigned chars - the mappers pick up
this data type and assume RGBA. The attached Tcl script shows how (NB. works
for 3.2, you might have to change a few things for 4.x).


----- Original Message -----
From: Christian Poecher <poecher at icom-consulting.de>
To: Koning, P.J.H. de (LKEB) <pjhdekoning at lumc.nl>; vtkUsers
<vtkusers at public.kitware.com>
Sent: Thursday, September 19, 2002 5:22 PM
Subject: Re: [vtkusers] Transparant polydata

> AFAIK this is not possible. When you pipeline your vtkPolyData through a
> vtkPolyDataMapper and finally a vtkActor, there is just one
> vtkProperties associated with the actor where you can set the opacity.
> We too have a dataset with windows in it (actually it is a building) and
> we will put walls and windows in different actors. If you find an other
> way please let me know.
> chris
> Koning, P.J.H. de (LKEB) wrote:
> > Is it possible to change the opacity of a single triangle in
> >
> > I want to create somthing like a 'window' in a polydata object and
change the opacity of that 'window'.
> --
> ________________________________________________________________________
> Christian Poecher                      mailto:poecher at icom-consulting.de
> ICOM GmbH   Phone: +49 241 9367-1554
> Schloss-Rahe-Str. 15, 52072 Aachen, Germany     Fax  : +49 241 9367-1589
> ________________________________________________________________________
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transparency.tcl
Type: application/octet-stream
Size: 2184 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020919/2faca588/attachment.obj>

More information about the vtkusers mailing list