I want to some offscreen rendering but come across a very annoying problem in linux,
even when I use a vtkWindowToImageFilter as the destination of the render and call
Render() on the render window, it opens the window but only on linux, Windows is behaving
Here is a snipper of what I am doing:
m_RendererSource = vtkWindowToImageFilter::New(); RenderWindow->SetOffScreenRendering(1); ChangeRenderSize(GetSizeX(), GetSizeY(), false); m_RendererSource->SetInput(RenderWindow); RenderWindow->Render(); m_RendererSource->Update();
At this point I would only expect the RendererSource to be updated and no window
to popup but in Linux(Ubuntu) it does. I’ve seen solutions on the web bout using Mesa
or overriding the class and remove the call that pops up the window.
Any other solutions readily available in VTK?