[vtkusers] Rendering Multiple Volumes

Charl P. Botha c.p.botha at its.tudelft.nl
Mon Apr 14 03:26:29 EDT 2003


On Mon, Apr 14, 2003 at 08:52:47AM +1000, Nigel.Hoschke at csiro.au wrote:
> At the moment I have two sets of structured points data that are read from
> .vtk files using the vtkStructuredPointsReader.  These are both passed
> through vtkVolumeTextureMapper2D into separate vtkLODProp3D which are then
> added to the vtkRenderer using the AddVolume method.  The outputs of the
> vtkVolumeTextureMapper2D are added to the vtkLODProp3D with the ADDLod
> method that takes in a vtkVolumeProperty.  A user defined
> vtkPiecewiseFunction has been used with SetScalarOpacity method for the
> vtkVolumeProperty to make most of the volumes translucent.

Okay.  This is still not as good as a short Python or Tcl/Tk example that
other readers of this list can run, but it's better than nothing.

Does the same happen if you use a vtkVolume (i.e. no vtkLODProp3D)?  For all
clarity, the volume that you add to the renderer FIRST gets occluded by the
volume that you add afterwards?

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list