[vtkusers] Dual Volume Rendering

Bill Foster billfoster at u.boisestate.edu
Thu Mar 1 19:08:51 EST 2012


Hi,

Being able to display two volumes superimposed over each other is valuable
in medical imaging. I've been trying to display 2 volumes in
SimpleRayCast.tcl. What I tried to do was define 2 functions for:
vtkVolume volume
    volume SetMapper volumeMapper
    volume SetMapper volumeMapper2
    volume SetProperty volumeProperty

The problem is that only one volume is displayed, the 2nd one assigned. I
did the obvious setup of the 2 volume mappers with a reader for each one:
vtkVolumeRayCastMapper volumeMapper
    volumeMapper SetVolumeRayCastFunction compositeFunction
    volumeMapper SetInputConnection [reader GetOutputPort]
vtkVolumeRayCastMapper volumeMapper2
    volumeMapper2 SetVolumeRayCastFunction compositeFunction
    volumeMapper2 SetInputConnection [reader2 GetOutputPort]

I wonder if there is another way to go about this problem. Any advice would
be appreciated.

Many thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120301/15426a42/attachment.htm>


More information about the vtkusers mailing list