[vtkusers] help: rendering problem

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed Aug 4 09:10:55 EDT 2004


Make sure you set the Culling backtofront for all renderers in the viewport
something like
vtkCuller *culler;

for (ren1->GetCullers()->InitTraversal(); culler =
ren1->GetCullers()->GetNextItem(); ) {

if (culler->IsA("vtkFrustumCoverageCuller")) {

((vtkFrustumCoverageCuller*)culler)->SetSortingStyleToBackToFront();

}

}



to make sure actors are renderered back to front and opacity works well.
Also see DepthSortPolyDAta for more advanced datasets where actors/data
overlap badly etc



JB

----- Original Message ----- 
From: "jiang-gx" <jxjx at sjtu.edu.cn>
To: "vtk" <vtkusers at vtk.org>
Sent: Wednesday, August 04, 2004 4:11 AM
Subject: [vtkusers] help: rendering problem


>   hi everyone:
>     i add two actors to a renderer(actor1 and actor2),then set the opacity
of actor1 to 0.8 . but at the intersetant area of actor1 and actor2, the
actor1 can not be see at all. why? what can i do to make the actor1
visible at th4 intersectant area?
>
>
>         jiang-gx
>         jxjx at sjtu.edu.cn
>           2004-08-04
>


----------------------------------------------------------------------------
----


> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list