[vtk-developers] Offscreen rendering to FBO in CVS version

Thierry.CARRARD at CEA.FR Thierry.CARRARD at CEA.FR
Mon Dec 10 10:35:16 EST 2007


I do agree,
this could be solved by adding a "UseFrameBufferOffScreen" flag at the vtkRenderWindow level, and apply the following change in the Initialize method of vtkXOpenGLRenderWindow.cxx :

before: if( ! this->CreateHardwareOffscreenRenderWindow(width,height) )
after: if( !this->GetUseFrameBufferOffScreen() || !this->CreateHardwareOffscreenRenderWindow(width,height) )

This would allow to have GLXPbuffer offscreen by default (for backward compatibility) and explicitly allow FBO offscreen when needed by calling ren->UseFrameBufferOffScreenOn()

Regards,
Thierry.


-----Message d'origine-----
De : vtk-developers-bounces+thierry.carrard=cea.fr at vtk.org [mailto:vtk-developers-bounces+thierry.carrard=cea.fr at vtk.org] De la part de Chris Kruszynski
Envoyé : jeudi 18 octobre 2007 11:25
À : VTK Developers
Objet : [vtk-developers] Offscreen rendering to FBO in CVS version

Hello,

I noticed that recently rendering to FBO has been introduced as an 
offscreen rendering method in the CVS version. The FBO is attached to an 
OpenGL context which uses an on-screen window. This is kind of missing 
the point of having an off-screen render window, and it is also not 
quite the best use of an FBO. Can the FBO at least be attached to a 
pbuffer offscreen window instead of an on-screen window?

- Chris
_______________________________________________
vtk-developers mailing list
vtk-developers at vtk.org
http://www.vtk.org/mailman/listinfo/vtk-developers



More information about the vtk-developers mailing list