When you flip the object around, do you see only green?<div><br></div><div>In any case, the typical mapper people use for surface rendering, vtkDataSetMapper, extracts the external surfaces. With that there is no possibility to see the inner cells even with opacity.</div>
<div><br></div><div>You could instead send the data through something like the shrink filter, to break up the object so that all cells are unconnected and thus external. Surface rendering with opacity then might to what you want.</div>
<div><br></div><div>However, it is much better to use volume rendering. That will be much faster and consume less memory.<br clear="all"><br></div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>Phone: 518-881-4909<br>
<br><br><div class="gmail_quote">On Wed, Jan 25, 2012 at 4:58 PM, bhanu <span dir="ltr"><<a href="mailto:bhanu@petrotel.com">bhanu@petrotel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am using VtkUnstructuredGrid to render a simple volume wherein each grid<br>
cell in the 3dvolume has 8 world coordinates. Each grid cell has a color<br>
associated with it and I am using a vtkLookUpTable for this. When I use<br>
SetOpacity(1) and see the top view, I expect to see the top layer alone<br>
since I have set an opacity of 1.0. And that works fine.<br>
Now When the opacity is changed to anything less than 1 (even 0.99), it<br>
seems the top layer vanishes and all I see from the top is the bottom most<br>
layer.<br>
For example, if top most layer is green and the bottom most layer is blue<br>
(with inbetween layers shades of lighter green), with opacity less than 1, I<br>
see all blue from the top. I was expecting mixed colors( green and blue).<br>
What am I missing.<br>
<br>
How do you see a transparent grid using VtkUnstructuredGrid and Opacity<br>
property. Should I not be using Scalar Opacity for such a problem. Is this<br>
where one uses Gradient Opacity.<br>
Can anyone please paste some code to direct me here.<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888">Bhanu<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VtkUnstructuredGrid-SetOpacity-tp5431453p5431453.html" target="_blank">http://vtk.1045678.n5.nabble.com/VtkUnstructuredGrid-SetOpacity-tp5431453p5431453.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></span></blockquote></div><br></div>