[vtkusers] Hardware offscreen rendering (and its possible use for the Java wrappers)

Luke Dodd luke.dodd at gmail.com
Thu Oct 20 10:01:54 EDT 2011


Hi Aashish,

> Quickly looked over your email. Correct me if I am wrong but it seems
> like you are looking for render to texture (+alternatives).
>

That's correct.

> It is not hard, the tricky part is to handle variations in OpenGL
> versions but it won't be that bad.  I have implemented two variations
> of it earlier ( for OpenGL 3.3 (used for deferred shading) and OpenGL
> ES (render to texture) ).
>

Is this code in VTK? I know what I'm attempting to do is possible in
theory, I'm trying to avoid writing a whole vtkRenderWindow
implementation. It seems like there are bits of code in
vtkOpenGLRenderWindow/vtkXOpenGLRenderWindow which set up hardware
frame-buffers if Mesa isn't being used. When I turn the offscreen
rendering flag on a (blank) window still pops up. Should I attempt to
use this, or roll my own solution?

Best,
Luke Dodd



More information about the vtkusers mailing list