<div dir="ltr">Are you using offscreen rendering, by any chance? There is a known issue that the MultiSampling options are not currently respected for some offscreen window implementations.<div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 9:57 AM, Kilgus, Thomas <span dir="ltr"><<a href="mailto:t.kilgus@dkfz-heidelberg.de" target="_blank">t.kilgus@dkfz-heidelberg.de</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="#0563C1" vlink="#954F72"><div><p class="MsoNormal"><span lang="EN-US">Hi everyone,<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">we recently switched to VTK 6.2 and there is no more anti-aliasing in any renderwindow. If you compare the output to VTK 6.1 you will see significant differences. See attached screenshot. This can be reproduced with the STL read example [3] and setting the rendering property to wireframe like this: <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">  actor->GetProperty()->SetRepresentationToWireframe();<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 figured out that anti-aliasing can be enabled again with:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">  renderWindow->SetLineSmoothing(1);<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">The following call, which I would assume to be necessary, has no effect:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">  renderWindow->SetMultiSamples(8);<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 could not find anything in the documentation about this. Is this change desired? Is this a bug?<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">To avoid confusion: We had a similar issue when switching to the QVTKWidget2, which we are not using now different reasons. See [1] for older mails and [2] for a patch. This seems to be another issue though.<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">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thomas<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"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">[1] <a href="http://vtk.1045678.n5.nabble.com/Anti-aliasing-multi-sampling-in-QVTKWidget2-td5730077.html" target="_blank">http://vtk.1045678.n5.nabble.com/Anti-aliasing-multi-sampling-in-QVTKWidget2-td5730077.html</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">[2] <a href="http://review.source.kitware.com/#/c/18864/" target="_blank">http://review.source.kitware.com/#/c/18864/</a><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">[3] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL</a>              <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"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thomas Kilgus<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">German Cancer Research Center (DKFZ)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Div. Medical and Biological Informatics <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Junior group: Computer-assisted Interventions (E131)<u></u><u></u></span></p><p class="MsoNormal"><span>Im Neuenheimer Feld 280<u></u><u></u></span></p><p class="MsoNormal"><span>69120 Heidelberg, Germany<u></u><u></u></span></p><p class="MsoNormal"><span>Phone: <a href="tel:%2B49%280%29%206221-42-3545" value="+496221423545" target="_blank">+49(0) 6221-42-3545</a><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></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>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>