<div dir="ltr">Hi Nicola, <div><br></div><div>I didn't spot anything obvious. Can you debug the VTK code? If yes, I can point you to the relevant VTK code. </div><div><br></div><div>- Aashish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 4:29 AM, Leucht, Nicola <span dir="ltr"><<a href="mailto:Nicola.Leucht@karlstorz.com" target="_blank">Nicola.Leucht@karlstorz.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Aashish,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">thanks that you already had a look at the issue!
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Do you (or anyone else) have any idea what the problem might be or where I should look?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Nicola<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>]
<b>Im Auftrag von </b>Leucht, Nicola<br>
<b>Gesendet:</b> Donnerstag, 23. April 2015 13:46<br>
<b>An:</b> Aashish Chaudhary</span></p><div><div class="h5"><br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Betreff:</b> Re: [vtkusers] Stereo rendering problem with OpenGL2<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">No, it stays there – always with two lines of the same eye.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aashish Chaudhary [<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">mailto:aashish.chaudhary@kitware.com</a>]
<br>
<b>Gesendet:</b> Donnerstag, 23. April 2015 13:44<br>
<b>An:</b> Leucht, Nicola<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Betreff:</b> Re: [vtkusers] Stereo rendering problem with OpenGL2<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I think its missing rendering the other eye at the center. Does it go away if you change the viewport dimensions? <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Aashish<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Apr 23, 2015 at 7:40 AM, Leucht, Nicola <<a href="mailto:Nicola.Leucht@karlstorz.com" target="_blank">Nicola.Leucht@karlstorz.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aashish Chaudhary [mailto:<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>]
<br>
<b>Gesendet:</b> Donnerstag, 23. April 2015 13:36<br>
<b>An:</b> Leucht, Nicola<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Betreff:</b> Re: [vtkusers] Stereo rendering problem with OpenGL2</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Your code looks fine. Can you post a screen capture of what you see? <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- Aashish<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Thu, Apr 23, 2015 at 7:20 AM, Leucht, Nicola <<a href="mailto:Nicola.Leucht@karlstorz.com" target="_blank">Nicola.Leucht@karlstorz.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I’m using VTK 6.2.0 with the OpenGL2 backend.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">When rendering in stereo (interlaced mode), there are two horizontal lines in the middle of the window that belong to one eye.
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal">Code:<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkRenderer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>
renderer = </span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkRenderer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>::New();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkRenderWindow</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>
renderWindow = </span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkRenderWindow</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>::New();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindow->AddRenderer(renderer);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkRenderWindowInteractor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>
renderWindowInteractor = </span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkRenderWindowInteractor</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>::New();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindowInteractor->SetRenderWindow(renderWindow);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSphereSource</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>
sphereSource = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSphereSource</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>::New();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">sphereSource->SetCenter(0.0, 0.0, 0.0);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">sphereSource->SetRadius(50.0);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">sphereSource->SetPhiResolution(100);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">sphereSource->SetThetaResolution(100);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkOpenGLPolyDataMapper</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>
mapper = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkOpenGLPolyDataMapper</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>::New();
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">mapper->SetInputConnection(sphereSource->GetOutputPort());</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkActor</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>
actor = </span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkSmartPointer</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkActor</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">>::New();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">actor->SetMapper(mapper);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">mapper->Update();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderer->AddActor(actor);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderer->GetActiveCamera()->SetEyeAngle(30);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderer->ResetCamera();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderer->SetBackground(.3, .6, .3);
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindow->StereoCapableWindowOn();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindow->SetStereoTypeToInterlaced();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindow->StereoRenderOn();</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindowInteractor->Start();</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Is there anything I need to change in my code?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Kind regards</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#888888">Nicola</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">--
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><i><span style="font-family:"Trebuchet MS","sans-serif"">| Aashish Chaudhary
<br>
| Technical Leader <br>
| Kitware Inc. </span></i><u></u><u></u></p>
<div>
<p class="MsoNormal"><i><span style="font-family:"Trebuchet MS","sans-serif"">| </span><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><i><span style="font-family:"Trebuchet MS","sans-serif"">| Aashish Chaudhary
<br>
| Technical Leader <br>
| Kitware Inc. </span></i><u></u><u></u></p>
<div>
<p class="MsoNormal"><i><span style="font-family:"Trebuchet MS","sans-serif"">| </span><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>