[vtkusers] vtkLookUpTable transparency bug?

Artem Babayan artem.paraview at googlemail.com
Thu Aug 11 13:12:52 EDT 2011


Hi,

I am trying to visualise a 2D scalar field as a 3D 'landscape'. Some
of the numbers are just indicators of 'undefined' values, so I do not
want to show them at all.

I set these 'undefined' numbers to the values which correspond to the
first row of vtkLookUpTable and then assign this row 'transparent'
alpha=0:

     lut->SetTableValue(0, 0, 0, 0, 0);

However, there are 2 problems:

1) This results in 'background' color, not 'transparent' -- see second
picture -- the transparent part actually closes some part of the
graphics.
2) On one Unix system I haven't even got transparency -- the
'transparent' part was drawn in black color (as corresponds to the
table value).

So am I doing something wrong here or is it a bug in vtkLookUpTable?

Also, may be there is a smarter way not to show 'undefined' values?

Best wishes
Artem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic_1.png
Type: image/png
Size: 42790 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110811/539ae7cd/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic_2.png
Type: image/png
Size: 41024 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110811/539ae7cd/attachment-0001.png>


More information about the vtkusers mailing list