<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I correct... it happens that the last addRenderer prevails over the previous ones so...some how it happens that only the last one is effective.....<br><br>there must be something else.<br><br><hr id="stopSpelling">Date: Thu, 11 Feb 2010 11:08:50 -0500<br>From: daviddoria+vtk@gmail.com<br>CC: vtkusers@vtk.org<br>Subject: Re: [vtkusers] set image as background<br><br><div class="ecxgmail_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="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); 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="ecxim"><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>                                            <br /><hr />Ci sai fare con le parole? <a href='http://typectionary.it.msn.com/' target='_new'> Scoprilo su Typectionary!</a></body>
</html>