VtkRenderWindow off screen

I would like to do off-screen rendering of vtkRenderWindow into a frame buffer object.

I am not sure how to do this, but I think that:

  • generate frame buffer using glGenFramebuffers - get GLuint fbo_id
  • Create vtkFrameBufferObject from vtkRendererWindow (I don't know how to do this)
  • call SetActiveBuffer (fbo_id) on vtkFrameBufferObject
  • call RenderQuad on vtkFrameBufferObject -> now created FBO should be filled with data.

My question is: how can I create a vtkFrameBufferObject with the contents of my window so that I can do off-screen rendering in FBO? Should this be done, as I said above?

+5
source share

Source: https://habr.com/ru/post/1241256/


All Articles