<div dir="ltr">Your code looks fine. Can you post a screen capture of what you see? <div><br></div><div>- Aashish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 7:20 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 lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m using VTK 6.2.0 with the OpenGL2 backend.
<u></u><u></u></span></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.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></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();<u></u><u></u></span></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();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindow->AddRenderer(renderer);<u></u><u></u></span></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();<u></u><u></u></span></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);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u> <u></u></span></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();<u></u><u></u></span></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);<u></u><u></u></span></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);<u></u><u></u></span></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);<u></u><u></u></span></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);<u></u><u></u></span></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();   
<u></u><u></u></span></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());<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u> <u></u></span></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();<u></u><u></u></span></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);<u></u><u></u></span></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();<u></u><u></u></span></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);<u></u><u></u></span></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);<u></u><u></u></span></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();<u></u><u></u></span></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);
<u></u><u></u></span></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();<u></u><u></u></span></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();<u></u><u></u></span></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();<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white">renderWindowInteractor->Start();</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there anything I need to change in my code?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Kind regards<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span lang="EN-US">Nicola<u></u><u></u></span></p>
</font></span></div>
</div>

<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><br>
<br></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>