As the example code is no longer available, I saved it from Wayback Machine here: PauloCarvalhoRJ/VTKwithOpenGLcalls: This is an example of an application with direct OpenGL calls and VTK. (github.com). It’s an older VTK 5 code, but it can help you get started.