[vtkusers] opacity with a vtkpolydata

mthorman mthorman at gmail.com
Wed Jan 21 17:06:08 EST 2009


I am writing a matlab like surf function.  I use vtkpolydata for my surface. 
Everything is working beautifully except my opacity.  I have mapped a range
of opacity in a LookupTable, and piped my surface through vtkPolyDataNormals
and then through vtkDepthSortPolyData.  I have set the sorting from back to
front.  When I spin my surface in space, views above the xy plane are
showing up translucent just fine.  Views from under the xy plane are not
translucent. Before using the vtkDepthSortPolyData, it was doing the same
thing but across the yz plane.  Which is the same behavior I get if I change
from backtofront to one of the other sort options in vtkDepthSortPolyData. 
Is there any thing that I am missing or am I just going to have to live with
that.  Does it not keep resorting front to back from the camera's
perspective?  Or do I somehow need to link the camera from the
vtkDepthSortPolyData to the viewPort which I am using the interactive
viewport image controls with joystick control.  I have tried a multitude of
things but I can't seem to find the right combination?  

http://www.nabble.com/file/p21593331/comparison.jpg 
-- 
View this message in context: http://www.nabble.com/opacity-with-a-vtkpolydata-tp21593331p21593331.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list