<div><div class="gmail_quote">On Mon, Feb 14, 2011 at 9:00 AM, Karthik Krishnan <span dir="ltr"><<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If the two images are at the same location in space, it seems like you should blend the two images (vtkImageBlend) and then display it.<br><br>If they are at different depths, you can achieve transparency either by setting the opacity on both or on the actor closer to the camera to be non-zero. <br>
Alternatively to achieve transparency on selected regions of an image, you can give it RGBA or LA (2 or 4 component) data. The last component will be treated as alpha value for the pixel.<br><br>I would suggest that you dither one of the images by a small amount.<br>
</blockquote><div> </div><meta http-equiv="content-type" content="text/html; charset=utf-8">Hi Karthik,<div><br></div><div>I don't want to blend them - I want to have the option to toggle which one is in front. They are both RGBA valued, with different alphas in different regions. So is the only way to achieve this to actually translate one of them to be in front of the other, and switch which one is translated to toggle which one is in front?<br>
<br></div><div>David </div></div></div>