hmmmmmmmmm... also this SetTransformCoordinate seems only available with vtkPolyDataMapper2D. Is there anything similar for the vtkImageMapper?<br><br>Confusing....! :D<br><br>Cheers,<br>Anja<br><br><div><span class="gmail_quote">
On 11/10/06, <b class="gmail_sendername">Anja Ende</b> <<a href="mailto:anja.ende@googlemail.com">anja.ende@googlemail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Roger,<br><br>Thanks for replying to my question.<br><br>I just wanted to clarify it with you. So you had 2d and 3d actors on the same scene and you set the coordinate system of the 2D mapper to the world coordinate system. Did I understand you correctly?
<br><br>Cheers,<br><br>Anja<div><span class="e" id="q_10e3769f38377e77_1"><br><br><div><span class="gmail_quote">On 11/10/06, <b class="gmail_sendername">Anja Ende</b> <<a href="mailto:anja.ende@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
anja.ende@googlemail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br><br>I was wondering if anyone has successfully displayed a 3d actor over a 2d actor and be willing to share an example.<br><br>I tried but unsuccessfully... I am only either able to show the 3d actor that is scaled and my 2d actor is not visible or I see nothing at all. I tried setting camera stuff (especially with parallel projection) but did not really work. I guess I am shooting in the dark here...
<br><br>I am trying to do something simple like:<br><br>// Add our 2d actor<br>this->m_renderer->AddActor(this->m_actor2D);<br><br>vtkPNGReader * cursorImage = vtkPNGReader::New();<br>cursorImage->SetFileName("/home/anja/bin/crosshair.png");
<br>cursorImage->Update();<br><br>vtkImageActor * actor = vtkImageActor::New();<br>actor->SetInput(cursorImage->GetOutput());<br>actor->PickableOn();<br>// Add the 3d actor.<br>this->m_renderer->AddActor(actor);
<br>actor->Delete();<br>cursorImage->Delete();<br><br>// As per David's suggestion.<br>this->m_actor2D->GetProperty()->SetDisplayLocationToBackground();<br><br>this->m_renderer->GetActiveCamera()->ParallelProjectionOn();
<br clear="all"><br>Hope you can help me. Thanks again :)<br><br>I will keep trying and update this thread when this is solved. I think a lot of newbies like me are struggling with this.<br><br>Cheers,<br><span>
<br>Anja
</span></blockquote></div><br><br clear="all"><br></span></div>-- <br>Cheers,<br><span class="sg"><br>Anja
</span></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br><br>Anja