<div>Hi, Chuck...</div>
<div>&nbsp;</div>
<div>I am new in VTK... There is a way to use especific methods to Crystal Eyes in VTK? My goal is to make stereo images for Crystal Eyes. So, I display the same actor in two differents viewports, where each one has it owns camera... One camera I have to use the method Azimuth(5) to set the&nbsp;difference of the distance of the eyes... So, when I move the actor in one viewport, the other do not move together... I have to make this work! There is methods to Crystal Eyes already implemented???
<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 1/9/08, <b class="gmail_sendername">Chuck Anderson</b> &lt;<a href="mailto:cda10@psu.edu">cda10@psu.edu</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><font face="Verdana, Helvetica, Arial"><span style="FONT-SIZE: 12px">I just saw this thread and can not find the beginning...but is there some special reason that you can not use the Crystal eyes stereo capability built into RenderWindow?
<br><br>Chuck<br></span></font></div></blockquote></div><br><br>
<div><span class="gmail_quote">On 1/9/08, <b class="gmail_sendername">Luca Pallozzi Lavorante</b> &lt;<a href="mailto:lplavorante@gmail.com">lplavorante@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Mark,<br>I have used the &quot;ren2-&gt;SetActiveCamera(ren1-&gt;GetActiveCamera())&quot; approach only on small test programs and I have got no crashes. On production applications the pair vtkOrientationMarkerWidget / vtkAxesActor was sufficient to me as I only needed a smaller viewport showing axes &quot;perfectly alligned&quot; with the object shown in the main viewport. 
<br><br>It would be interesting to know if anybody on the list has had crash problems by sharing camera pointers among renderers.<br><span class="sg"><br>&nbsp;&nbsp;&nbsp; Luca</span> 
<div><span class="e" id="q_1175fe5e94a785fb_2"><br><br><br>
<div class="gmail_quote">On Jan 9, 2008 4:09 PM, Mark Wyszomierski &lt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:markww@gmail.com" target="_blank">markww@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Luca, I had tried that myself at one point: <br><br>&nbsp; &nbsp; ren2-&gt;SetActiveCamera(ren1-&gt;GetActiveCamera());
<br><br>but would get random crashes, has it been ok for you? I eventually had<br>to manually copy over camera parameters between the two cameras<br>instead to get the same effect. <br><br>I think what Sicilia wants is to have the same interaction propagated
<br>to all renderers (since the cameras may be setup in different<br>locations). This probably isn&#39;t a typical thing to do, normally you<br>want the camera location copied throughout all renderers instead. I<br>was looking into this but couldn&#39;t figure out myself how to Invoke()
<br>the same interaction on another renderer. We can listen on Interaction<br>events on the render window&#39;s interactor, but not quite sure how to<br>propagate it to the other renderers.<br><br>Mark<br><br><br>On Jan 9, 2008 8:52 AM, Sicilia Judice &lt;
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:siciliajudice@gmail.com" target="_blank">siciliajudice@gmail.com </a>&gt; wrote:<br>&gt; I think I am very near to finish this...<br>&gt;<br>&gt; Let me try to explain... I have to generate stereo images to use with
<br>&gt; Crystal Eyes... So, I have create two viewports, displayed vertically, one <br>&gt; over other... The upper viewport is the stereo image for one eye, and the<br>&gt; second one for the other eye. I have to put one of this images with a
<br>&gt; difference of 5° (the paralaxe). I was creating two cameras, each one for <br>&gt; one viewport. In the second camera I was using the method Azimuth(5). But in<br>&gt; this way, I was having to take care of the interaction, what I could not
<br>&gt; done... Now I have try a different solution: I create only one camera and <br>&gt; set to both viewports. Now, any action with the mouse move the two images<br>&gt; together... But I have to translate the second image in 5°, and I do not
<br>&gt; know how to do it... How can I translate an imagem in a viewport??? <br>&gt;<br>&gt; ps.: sorry for the english, I am from Brazil!<br>&gt;<br>&gt; ps2.: thanks for the attention!!!<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Jan 9, 2008 11:42 AM, Luca Pallozzi Lavorante &lt;
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lplavorante@gmail.com" target="_blank"> lplavorante@gmail.com</a> &gt;<br>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Sicilia,<br>
&gt; &gt; if you work in C++, let&#39;s say you have two viewports, with two<br>&gt; corresponding instances of vtkRenderer, ren1 and ren2. Say that you want to <br>&gt; modify ren2´s camera according to whatever interaction you perform on ren1
<br>&gt; (via a vtkRenderWindowInteractor). The command to accomplish that is :<br>&gt; &gt;<br>&gt; &gt; ren2-&gt;SetActiveCamera(ren1-&gt;GetActiveCamera()); <br>&gt; &gt;<br>&gt; &gt; Hope this help<br>&gt; &gt;<br>&gt; &gt; &nbsp; &nbsp; &nbsp; Luca
<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; This is the private VTK discussion list.<br>&gt; &gt; Please keep messages on-topic. Check the FAQ at: <br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; ---------------------------------------------------------------------------<br>&gt; Sicilia Ferreira Judice 
<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.lncc.br/%7Esicilia" target="_blank">www.lncc.br/~sicilia</a><br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sicilia@lncc.br" target="_blank">
sicilia@lncc.br</a><br>&gt;<br>&gt; Laboratório Nacional de Computação Cientifica<br>&gt; Avenida Getulio Vargas, 333 - Quitandinha. <br>&gt; Petrópolis, RJ, Brasil - CEP: 25651-075.<br>&gt; Sala 1A-44 &nbsp;| Tel. +55 (24) 2233-6173
<br>&gt; Lab. Virtual | Tel. +55 (24) 2233-6098<br>&gt; _______________________________________________<br>&gt; This is the private VTK discussion list. <br>&gt; Please keep messages on-topic. Check the FAQ at:<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br>&gt;<br></blockquote></div><br></span></div><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------------------<br>Sicilia Ferreira Judice<br><a href="http://www.lncc.br/~sicilia">
www.lncc.br/~sicilia</a><br><a href="mailto:sicilia@lncc.br">sicilia@lncc.br</a><br><br>Laboratório Nacional de Computação Cientifica<br>Avenida Getulio Vargas, 333 - Quitandinha.<br>Petrópolis, RJ, Brasil - CEP: 25651-075. 
<br>Sala 1A-44&nbsp;&nbsp;| Tel. +55 (24) 2233-6173<br>Lab. Virtual | Tel. +55 (24) 2233-6098