Runtime settings#
OpenGL#
On Linux and Windows, VTK will attempt to detect support for an OpenGL context backend at runtime
and create an appropriate subclass of vtkOpenGLRenderWindow. You can override this process by
specifying an environment variable VTK_DEFAULT_OPENGL_WINDOW. The possible values
are:
vtkXOpenGLRenderWindow(Linux; applicable only whenVTK_USE_XisON, which is the default setting)vtkWin32OpenGLRenderWindow(Windows; applicable only whenVTK_USE_WIN32_OPENGLisON, which is the default setting)vtkEGLRenderWindow(applicable only whenVTK_OPENGL_HAS_EGLisON, which is the default setting)vtkOSOpenGLRenderWindow(OSMesa, requires thatosmesa.dllorlibOSMesa.sois installed)
Note: VTK does not support OSMesa on macOS, iOS, Android and WebAssembly platforms.
Multisample anti-aliasing#
Some OpenGL drivers have rendering problems when Multisample anti-aliasing is enabled.
It is possible to specify the environment variable VTK_FORCE_MSAA to troubleshoot rendering problems with these values:
0to disable MSAA1to enable it regardless even when the driver is known to have problems with MSAA