<div dir="ltr"><div>Olivier,</div><div><br></div>Try calling<div><br></div><div><span style="font-size:12.8000001907349px">    view->GetRenderWindow()-></span><span style="font-size:12.8000001907349px">SetStereoTypeToCrystalEyes();</span></div><div><span style="font-size:12.8000001907349px">    v</span><span style="font-size:12.8000001907349px">iew->GetRenderWindow()->StereoRenderOn();</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">instead of<br></span><div><br></div><div><span style="font-size:12.8000001907349px">    view->GetRenderWindow()-></span><span style="font-size:12.8000001907349px">SetStereoTypeToAnaglyph();</span><br></div></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">This has worked on a system similar to yours.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">HTH,</span></div><div><span style="font-size:12.8000001907349px">Cory</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 11:38 AM, Olivier Ameline <span dir="ltr"><<a href="mailto:olivameline@gmail.com" target="_blank">olivameline@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I am trying to draw an helix in a QVTKWidget with stereoscopic 3D.<br>
I'm equiped with a Nvidia Quadro graphic card with 3D glasses and 3D Asus<br>
monitor, and the stereo works well in other programs.<br>
<br>
Here is a part of my code :<br>
<br>
    // Add the graph in the view<br>
<br>
    view->GetScene()->AddItem(chart.GetPointer());<br>
<br>
    // Add a plot to the graph<br>
<br>
    plot->SetInputData(table.GetPointer());<br>
    plot->GetPen()->SetColorF(0.0, 0.0, 0.0, 0.5);<br>
    chart->AddPlot(plot.GetPointer());<br>
    chart->RecalculateBounds();<br>
<br>
    // Stereo rendering<br>
<br>
    view->GetRenderer()->ResetCamera();<br>
    view->GetRenderWindow()->StereoCapableWindowOn();<br>
    view->GetRenderWindow()->SetStereoRender(1);<br>
    view->GetRenderWindow()->SetStereoTypeToAnaglyph();<br>
    view->GetRenderWindow()->StereoUpdate();<br>
<br>
    // Put the view in the QVTKWidget<br>
<br>
    view->SetInteractor(ui->vueCourbe->GetInteractor());<br>
    ui->vueCourbe->SetRenderWindow(view->GetRenderWindow());<br>
<br>
-------------------------------------------------------------------------------------------<br>
<br>
When I compile, the helix is displayed without any stereo.<br>
I don't know what is wrong.<br>
<br>
<br>
Thanks for your help<br>
<br>
Olivier.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/problem-with-stereo-rendering-tp5732934.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/problem-with-stereo-rendering-tp5732934.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>