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

jiang jiang at TI.Uni-Trier.DE
Thu Jan 15 03:39:59 EST 2004


Hi Simon,
I tried to do as you said. However, the second image can not cover the first
image. The second image can be rendered on other place. Or if I only render
the second image in the vtkRenderer, I can see it. But if I render them
together, as your reply:
first:vtkImageData->vtkImageActor---->vtkRenderer
                            |
second:vtkImageData->vtkImageActor--
I can only see the first image. The second image could not be seen. I
suppose the first covers the second image. So I can not see the second
image. How can I define the order of different render objects?


Thank you very much!


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