[vtkusers] VtkUnstructuredGrid SetOpacity

bhanu bhanu at petrotel.com
Wed Jan 25 16:58:16 EST 2012


Hi,

I am using VtkUnstructuredGrid to render a simple volume wherein each grid
cell in the 3dvolume has 8 world coordinates. Each grid cell has a color
associated with it and I am using a vtkLookUpTable for this. When I use
SetOpacity(1) and see the top view, I expect to see the top layer alone
since I have set an opacity of 1.0. And that works fine.
Now When the opacity is changed to anything less than 1 (even 0.99), it
seems the top layer vanishes and all I see from the top is the bottom most
layer.
For example, if top most layer is green and the bottom most layer is blue
(with inbetween layers shades of lighter green), with opacity less than 1, I
see all blue from the top. I was expecting mixed colors( green and blue).
What am I missing.

How do you see a transparent grid using VtkUnstructuredGrid and Opacity
property. Should I not be using Scalar Opacity for such a problem. Is this
where one uses Gradient Opacity.
Can anyone please paste some code to direct me here.

Thanks,
Bhanu 

--
View this message in context: http://vtk.1045678.n5.nabble.com/VtkUnstructuredGrid-SetOpacity-tp5431453p5431453.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list