Is it possible to run a VTK based application on a Windows server that does not have OpenGL support?

I tried using a VTK based application on a Windows server machine that does not have OpenGL support. The program crashes immediately for lack of OpenGL support.

Is it possible to run a VTK based application on such a platform?

I am using VTK 7.1.1.

I use the following lines of code/modules in a C++ program to use OpenGL.

#include <vtkAutoInit.h>

VTK_MODULE_INIT(vtkRenderingOpenGL2);
VTK_MODULE_INIT(vtkInteractionStyle);
VTK_MODULE_INIT(vtkRenderingFreeType);

I haven’t found an alternative to vtkRenderingOpenGL2.

Not if you want to use OpenGL :slight_smile: . Render-less applications should be fine, but VTK requires OpenGL to be working in order to actually render anything.

@ben.boeckel I am looking for a way to use VTK without OpenGL.

You can do data manipulations (such as filters) and IO, but if you want to render it, you’ll need OpenGL. The app you’re using will need to not use any of the Rendering libraries (certainly vtkRenderingOpenGL2). Alternatively, you could compile Mesa and use software rendering, though this is more complicated on Windows and I don’t have any reliable instructions for that handy.