[vtk-developers] Transparent LookupTables

Francois Bertel francois.bertel at kitware.com
Mon Nov 16 11:17:26 EST 2009


Hello,

vtkLookupTable::SetTableValue(vtkIdType indx, double r, double g,
double b, double a); allows to set the alpha value per table entry.


On Mon, Nov 16, 2009 at 7:12 AM, Biddiscombe, John A. <biddisco at cscs.ch> wrote:
> vtkLookupTable does not directly support the handling of tables with transparency which changes on a per item level.
>
> I recently added some tweaks to it to allow some pictures to be generated (from paraview) which used an overlay of a dataset which had transparent regions on top of a textured image. It looked very nice, but I was very surprised that there is no native support for generating a lookuptable with a luminance scaled opacity or other similar simple opacity function.
>
> I used to do this quite a bit and found it very useful  (GIS stuff in particular).
>
> Is there some other support for creating semi-transparent datasets/images etc that I have not seen. Has anyone else worked on this. When creating the original point sprite mapper, I had to make a few changes to how the mappers decide if an actor has transparency or not. Normaly they query the actor's opacity, but when it is 1.0 and the lookup table has some, things broke. I know that Francois (or someone else) recently added a native handling for this kind of check within the rendering pipeline, so does support for transparent lookuptables now exist too - and am I looking in the wrong place?
> Either way - is anyone else interested in this capability?
>
> JB
>
> --
> John Biddiscombe,                            email:biddisco @ cscs.ch
> http://www.cscs.ch/
> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
> Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtk-developers mailing list