<div>hummmmmm, that is interesting... I will testing this and then tell you what happen!</div>
<div>thanks everyone for the help!!!!<br><br> </div>
<div><span class="gmail_quote">On 1/9/08, <b class="gmail_sendername">jonathan grimm</b> <<a href="mailto:flymolo@gmail.com">flymolo@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">If you want CrystalEyes alternate frame stereo, vtk will do everything for you. Did you enable StereoCapableWindow? Have you tested stereo on your system with another app?
<br><br>If you want the 2 separate images, you can create a RenderWindow with StereoTypeToLeft and one with StereoModeTypeToRight. <br><br>
<div class="gmail_quote">
<div><span class="e" id="q_117601a41a8011d2_1">On Jan 9, 2008 11:36 AM, Sicilia Judice <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:siciliajudice@gmail.com" target="_blank">siciliajudice@gmail.com
</a>> wrote:<br></span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><span class="e" id="q_117601a41a8011d2_3">Are you sure that the generation of the two views occurs internally??? The example I have found use this method (<font size="2">SetStereoTypeToCrystalEyes) but also create manually the stereo images...
</font>
<div>
<div></div>
<div><br><br>
<div><span class="gmail_quote">On 1/9/08, <b class="gmail_sendername">CLEMENTS, ROBERT</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rclement@kent.edu" target="_blank">rclement@kent.edu</a>
> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<p><font size="2">If you are trying to use crystal eyes why not just SetStereoTypeToCrystalEyes on the renderwindow. You don't get much control over 3d rendering parameters (offset...), but everything is taken care of internally by vtk, including the generation of the 2 views. Also ren2->SetActiveCamera(ren1->GetActiveCamera()); probably wouldn't work for this application since the two viewpoints should actually be 2 different views, consequently different cameras, right?
<br><br><br>Rob
<div><span><br><br>Luca, I had tried that myself at one point:<br><br> ren2->SetActiveCamera(ren1->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'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'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'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 < <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:siciliajudice@gmail.com" target="_blank">
siciliajudice@gmail.com</a>> wrote:<br>> I think I am very near to finish this...<br>><br>> Let me try to explain... I have to generate stereo images to use with <br>> Crystal Eyes... So, I have create two viewports, displayed vertically, one
<br>> over other... The upper viewport is the stereo image for one eye, and the<br>> second one for the other eye. I have to put one of this images with a <br>> difference of 5° (the paralaxe). I was creating two cameras, each one for
<br>> one viewport. In the second camera I was using the method Azimuth(5). But in<br>> this way, I was having to take care of the interaction, what I could not <br>> done... Now I have try a different solution: I create only one camera and
<br>> set to both viewports. Now, any action with the mouse move the two images<br>> together... But I have to translate the second image in 5°, and I do not <br>> know how to do it... How can I translate an imagem in a viewport???
<br>><br>> ps.: sorry for the english, I am from Brazil!<br>><br>> ps2.: thanks for the attention!!!<br>><br>><br>><br>> On Jan 9, 2008 11:42 AM, Luca Pallozzi Lavorante < <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lplavorante@gmail.com" target="_blank">
lplavorante@gmail.com</a> ><br>> wrote:<br>> ><br>> ><br>> ><br>> > Sicilia,<br>> > if you work in C++, let's say you have two viewports, with two <br>> corresponding instances of vtkRenderer, ren1 and ren2. Say that you want to
<br>> modify ren2´s camera according to whatever interaction you perform on ren1<br>> (via a vtkRenderWindowInteractor). The command to accomplish that is : <br>> ><br>> > ren2->SetActiveCamera(ren1->GetActiveCamera());
<br>> ><br>> > Hope this help<br>> ><br>> > Luca<br>> ><br>> > _______________________________________________ <br>> > This is the private VTK discussion list.<br>> > Please keep messages on-topic. Check the FAQ at:
<br>> <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>> ><br>><br>><br>>
<br>> --<br>> ---------------------------------------------------------------------------<br>> Sicilia Ferreira Judice <br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.lncc.br/%7Esicilia" target="_blank">
www.lncc.br/~sicilia</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sicilia@lncc.br" target="_blank">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 | Tel. +55 (24) 2233-6173 <br>> Lab. Virtual | Tel. +55 (24) 2233-6098<br>> _______________________________________________
<br>> This is the private VTK discussion list.<br>> Please keep messages on-topic. Check the FAQ at:<br>> <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>><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></span></div></font>
<p></p>
<p></p></p></div></blockquote></div><br><br clear="all"><br> </div></div>--
<div>
<div></div>
<div><br>---------------------------------------------------------------------------<br>Sicilia Ferreira Judice<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.lncc.br/%7Esicilia" target="_blank">
www.lncc.br/~sicilia </a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sicilia@lncc.br" target="_blank">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 | Tel. +55 (24) 2233-6173 <br>Lab. Virtual | Tel. +55 (24) 2233-6098 </div></div><br></span></div>_______________________________________________<span class="q">
<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></span></blockquote></div><br><br clear="all"><br>-- <br>Sometimes it's hard to tell the dancer from the dance - Corwin in CoC </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 | Tel. +55 (24) 2233-6173<br>Lab. Virtual | Tel. +55 (24) 2233-6098