Anti-aliasing / multi sampling with vtkGenericOpenGLRenderWindow

Hello,

I am using vtkGenericOpenGLRenderWindow and QVTKOpenGLNativeWidget for VTK rendering in Qt.

In order to get the right result when using the vtkSelectVisiblePoints filter, I had to set the number of multi samples to zero:

vtkGenericOpenGLRenderWindow::SetGlobalMaximumNumberOfMultiSamples(0);
QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
auto defaultFormat = QVTKOpenGLNativeWidget::defaultFormat();
defaultFormat.setSamples(0);
QSurfaceFormat::setDefaultFormat(defaultFormat);

Unfortunately, without using multi-samples, the quality of the actors is noticeably worse which I would like to avoid.

Can someone explain me why I have to disable multi-samples when using vtkSelectVisiblePoints and vtkGenericOpenGLRenderWindow (vtkRenderWindow does not require it) and if there is any fix for this?

Thank you.

Hi,
The issue has been fixed recently in VTK: https://gitlab.kitware.com/vtk/vtk/merge_requests/6356
You can use the master branch or wait for VTK 9.0 release.