VTK

  • VTK Book
  • VTK.js is a JavaScript library available for scientific visualization in your browser.

Issue: vtkOpenGLRenderWindow OpenGL version

When you run vtk, you may encounter such error:

6FFD700\]vtkOpenGLRenderWindow.c:499
ERR| vtkGenericOpenGLRenderWindow (0x116bf50): Unable to find a valid OpenGL 3.2 or later implementation.
Please update your video card driver to the latest version.
If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr.
If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards.
You can use other remoting software such as nomachine to avoid this issue.  

Check your OpenGL version:

glxinfo | grep "OpenGL version"

You may get:

OpenGL version string: 3.0 Mesa 21.3.3 - kisak-mesa PPA

Now, if you do: (see solution https://stackoverflow.com/a/49878999/3547352)

export MESA_GL_VERSION_OVERRIDE=3.3

You’ll now get:

OpenGL version string: 3.3 (Compatibility Profile) Mesa 21.3.3 - kisak-mesa PPA

When you run the vtk window, the red error should disappear