[vtk-developers] Anti-aliasing / multi sampling turned off in VTK 6.2?
Kilgus, Thomas
t.kilgus at Dkfz-Heidelberg.de
Wed Apr 22 09:57:58 EDT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150422/85000913/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: antialiasing.png
Type: image/png
Size: 40536 bytes
Desc: antialiasing.png
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150422/85000913/attachment-0001.png>
More information about the vtk-developers
mailing list