[vtkusers] 3d texture map volume rendering - culler
Amy Squillacote
amy.squillacote at kitware.com
Tue Jun 28 14:55:28 EDT 2005
Try using the culler that the renderer creates itself. The code would look
like this.
vtkFrustumCoverageCuller *culler =
(vtkFrustumCoverageCuller*)(renderer->GetCullers()->GetItemAsObject(0));
culler->SetSortingStyleToBackToFront();
Then you won't need the AddCuller line.
- Amy
At 02:31 PM 6/28/2005, Todd Gable wrote:
>Do you have any sample code on how to use the culler with multiple volumes
>in one window? Here is what I tried, which will run but does not work. I'm
>probably not even close.
>
> ...
> vtkFrustumCoverageCuller* culler = vtkFrustumCoverageCuller::New();
> culler->SetSortingStyleToBackToFront();
> ...
> vtkRenderer* renderer = vtkRenderer::New();
> renderer->AddVolume(volume1);
> renderer->AddVolume(volume2);
> renderer->AddCuller(culler);
>
>Thanks.
>
>Todd
>_______________________________________________
>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