[vtkusers] render oder of transparent object
Amy Squillacote
amy.squillacote at kitware.com
Mon Apr 24 08:57:10 EDT 2006
In order for your rendering to look correct, the polygons in your
scene must be rendered in the correct order. First, make sure that
the actor(s) for the transparent isosurface(s) is/are added
last. You may also need to use the vtkDepthSortPolyData
(http://www.vtk.org/doc/nightly/html/classvtkDepthSortPolyData.html)
filter, which sorts the polygons for a particular actor along the
view direction. You could also try turning on back-to-front
rendering in the culler of the vtkRenderer (as shown below). (By
default, the first culler in a vtkRenderer is a
vtkFrustumCoverageCuller, and this is the culler that provides the
SetSortingStyle methods.)
vtkRenderer ren
set cullers [ren GetCullers]
cullers InitTraversal
[cullers GetNextItem] SetSortingStyleToBackToFront
- Amy
At 05:44 AM 4/23/2006, lzyhm wrote:
>I am having some troubles with object rendering order. I displays
>some transparent isosurfaces in a render window. But from all view
>angle, the blue object is on top. If the objects isn't transparent,
>the order is correct. The blue object is added at last. why? help
>me. The result picture is attached.
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list