[vtk-developers] Anti-aliasing / multi sampling turned off in VTK 6.2?

David Lonie david.lonie at kitware.com
Wed Apr 22 10:34:14 EDT 2015


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.

Dave

On Wed, Apr 22, 2015 at 9:57 AM, Kilgus, Thomas <t.kilgus at dkfz-heidelberg.de
> wrote:

> Hi everyone,
>
>
>
> 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:
>
>   actor->GetProperty()->SetRepresentationToWireframe();
>
>
>
> I figured out that anti-aliasing can be enabled again with:
>
>   renderWindow->SetLineSmoothing(1);
>
>
>
> The following call, which I would assume to be necessary, has no effect:
>
>   renderWindow->SetMultiSamples(8);
>
>
>
> I could not find anything in the documentation about this. Is this change
> desired? Is this a bug?
>
>
>
> 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.
>
>
>
> Regards,
>
> Thomas
>
>
>
>
>
> [1]
> http://vtk.1045678.n5.nabble.com/Anti-aliasing-multi-sampling-in-QVTKWidget2-td5730077.html
>
> [2] http://review.source.kitware.com/#/c/18864/
>
> [3] http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL
>
>
>
>
>
> Thomas Kilgus
>
> German Cancer Research Center (DKFZ)
>
> Div. Medical and Biological Informatics
>
> Junior group: Computer-assisted Interventions (E131)
>
> Im Neuenheimer Feld 280
>
> 69120 Heidelberg, Germany
>
> Phone: +49(0) 6221-42-3545
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150422/5485f44d/attachment.html>


More information about the vtk-developers mailing list