<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1500482535878_3653" dir="ltr">Hi, I'm using vtkImageBlend to blend two vtkImageMapToColors. Right now if I change the opacity map of the first vtkImageMapToColors (via lookup table), it adjusts the entire alpha of the output (so for example hiding the first one hides both of them). Is there a way to prevent vtkImageBlend from assigning the opacity of the first element to the output? I've tried using the "compound" blending mode in case that would help, but the screen is blank then. Any help would be great!</div><div id="yui_3_16_0_ym19_1_1500482535878_3653" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1500482535878_3653" dir="ltr">This is a simplified version of the code I'm using:</div><div id="yui_3_16_0_ym19_1_1500482535878_3653" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3856">vtkSmartPointer<vtkImageMapToColors> imapper1 = vtkSmartPointer<vtkImageMapToColors>::New();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3857">imapper1->SetLookupTable(lut1);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3858">imapper1->PassAlphaToOutputOn();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3859">imapper1->SetInputData(image1);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3860">imapper1->Update();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3861"><br id="yui_3_16_0_ym19_1_1500482535878_3862"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3863">vtkSmartPointer<vtkImageMapToColors> imapper2 = vtkSmartPointer<vtkImageMapToColors>::New();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3864">imapper2->SetLookupTable(lut2);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3865">imapper2->PassAlphaToOutputOn();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3866">imapper2->SetInputData(image2);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3867">imapper2->Update();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3868"><br id="yui_3_16_0_ym19_1_1500482535878_3869"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3870">vtkSmartPointer<vtkImageBlend> blend = vtkSmartPointer<vtkImageBlend>::New();</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3871">blend->AddInputConnection(imapper1->GetOutputPort());</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3872">blend->SetOpacity(0, 1.0);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3873">blend->AddInputConnection(imapper2->GetOutputPort());</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3874">blend->SetOpacity(1, 1.0);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3874"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500482535878_3874">// If I now render and adjust lut1, it affects the output of blend so the imapper2 image gets affected</div><div id="yui_3_16_0_ym19_1_1500482535878_3653" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1500482535878_3653" dir="ltr">Mike</div></div></body></html>