Hi everyone,<br><br>Ok, I have almost tried everything unsuccessfully...exxcept for what would make this thing work! I have had no success in mixing 2d and 3d actors.<br><br>So, my latest brilliant idea was to use multiple renderers and layer them on the render window.
<br><br>So, only the top one would have the 3d actors and the bottom one would be my 2d actor.... I thought this would work for sure!<br><br>Well, my code is like this:<br><br>this-&gt;m_actor2D-&gt;SetMapper(this-&gt;m_imageMapper);
<br>this-&gt;m_renderer-&gt;AddViewProp(this-&gt;m_actor2D);<br>// first renderer<br>this-&gt;m_renderer-&gt;SetLayer(0);<br><br>vtkPNGReader * cursorImage = vtkPNGReader::New();<br>cursorImage-&gt;SetFileName(&quot;/home/anja/crosshair.png&quot;);
<br>cursorImage-&gt;Update();<br><br>vtkImageChangeInformation * imageChange = vtkImageChangeInformation::New();<br>imageChange-&gt;SetInput(cursorImage-&gt;GetOutput());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>vtkImageActor * actor = vtkImageActor::New();
<br>actor-&gt;SetInput(imageChange-&gt;GetOutput());<br>imageChange-&gt;CenterImageOn();<br>// second renderer<br>this-&gt;m_renderer2-&gt;AddViewProp(actor);<br>this-&gt;m_renderer2-&gt;SetLayer(1);<br><br>// 2 layers &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  
<br> this-&gt;m_renderWindow-&gt;SetNumberOfLayers(2);<br>// Add the layers to my render window.<br>this-&gt;m_renderWindow-&gt;AddRenderer(this-&gt;m_renderer);<br>this-&gt;m_renderWindow-&gt;AddRenderer(this-&gt;m_renderer2);
<br clear="all"><br>Well, no matter what layer I put the 2d actor in... all I can see is the 3d actor..always! I would die to see my 2d actor right now!!<br><br>Please help me here. I am totally out of ideas now!<br><br>Cheers,
<br><br>Anja