AW: [vtkusers] How to show semi-transparent image?

jiang jiang at TI.Uni-Trier.DE
Thu Jan 15 04:30:38 EST 2004


Hi Simon,
The two images can be rendered correctly. The pipeline should be:
vtkImageData->vtkImageActor---->vtkRenderer
                                           |->vtkRenderWindow
vtkImageData->vtkImageActor---->vtkRenderer

combine with vtkRenderer->SetLayer and
vtkRenderWindow->SetNumberOfLayers(2).

Cheers,

Chunyan


-----Ursprungliche Nachricht-----
Von: Simon DROUIN [mailto:sdrouin at bic.mni.mcgill.ca]
Gesendet: Dienstag, 13. Januar 2004 14:21
An: jiang
Cc: VTK
Betreff: Re: [vtkusers] How to show semi-transparent image?


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