[vtkusers] How to show semi-transparent image?

Simon DROUIN sdrouin at bic.mni.mcgill.ca
Tue Jan 13 08:20:40 EST 2004


jiang wrote:

>Hi vtk-users,
>I have already shown one image in vtk pipeline:
>vtkImageData->vtkImageActor->vtkRenderer
>Now I want to show one other image in this pipeline. The second image should
>be semi-transparent, and cover on the first image. How can I realize it?
>
>Thank you very much!
>
>
>Chunyan
>
>_______________________________________________
>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
>  
>

new pipeline:

vtkImageData->vtkImageActor---->vtkRenderer
                            |
vtkImageData->vtkImageActor--


On the second actor, do that:

actor->GetProperty()->SetOpacity 
<cid:part1.04030609.04000504 at bic.mni.mcgill.ca>( 0.5 )


Simon Drouin




More information about the vtkusers mailing list