<div class="gmail_quote">On Thu, Feb 11, 2010 at 10:54 AM, Giancarlo Amati <span dir="ltr"><<a href="mailto:ilferraresebono@hotmail.it">ilferraresebono@hotmail.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
mmm now it get confusing because that's the style of my code:<br><div><blockquote style="padding-left:1ex"><div><br>this is the declaration:<br> vtkSmartPointer<vtkRenderer> L0= vtkSmartPointer<vtkRenderer>::New();<br>
vtkSmartPointer<vtkCamera> camL0 = vtkCamera::New();<br>
<br><br> vtkSmartPointer<vtkRenderer> L1 = vtkSmartPointer<vtkRenderer>::New();<br> vtkSmartPointer<vtkCamera> camL1 = vtkCamera::New();<br> <br><br> vtkSmartPointer<vtkRenderWindow> renderWindow = vtkSmartPointer<vtkRenderWindow>::New();<br>
renderWindow->SetSize(720,576);<br> <br><br>Than I create a plane with texture the image I load up and then... I add the plane to L1;<br>L0->AddActor(Scene);<br>L1->AddActor(texturedPlane);<br><br>renderWindow->AddRenderer(L0);<br>
renderWindow->AddRenderer(L1);<br><br>and I call start() of the interactor.<br><br>but I just got my Texture rendered..but not the 3D Model. so what u mean with Layers?<br><br>Regards.<br>Giancarlo<div class="im"><div>
</div></div></div></blockquote></div></div></blockquote></div><br><div>I tried to make a demo of this:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/BackgroundImage">http://www.vtk.org/Wiki/VTK/Examples/BackgroundImage</a></div>
<div><br></div><div>However, it seems like one renderer covers up the other. For now it is just trying to display an ImageActor in backgroundRenderer and then a sphere in sceneRenderer.</div><div><br clear="all">Thanks,<br>
<br>David<br></div>