[vtkusers] vtkRendererSource and vtkRenderWindow.
sebastien.jourdain at kitware.com
Thu Jun 24 12:53:57 EDT 2010
I haven't try with the latest version of OSMesa, but it did work for
me with that one.
On Tue, Jun 22, 2010 at 4:34 PM, Eloisa Bentivegna
<bentivegna at cct.lsu.edu> wrote:
> Eric E. Monson ha scritto:
>> Hello Eloisa,
>> Hopefully someone who had actually done this will step in if I get
>> something wrong, but I wanted to get you started in what I think is the
>> correct direction. If you want to do "offscreen rendering", the current
>> method (assuming you're using a fairly recent version of VTK -- 5.4 or 5.6
>> or git) is to build OSMesa (or maybe your OS comes with it?) and have VTK
>> use that for OpenGL rendering.
>> Here's an email from last year explaining a little of this:
>> Just make sure you ignore older information you come across which refer to
>> "mangled Mesa", as this isn't supported any more.
>> Then, the more current filter (instead of vtkRendererSource) is
>> And there is an example of doing offscreen rendering using this filter on
>> the VTK Examples Wiki page:
> Thanks for all the details!
> After installing a few missing packages, I was able to compile the
> off-screen example given above. However, I get:
> $ ./OffScreenRendering
> ERROR: In /home/bentiveg/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 405
> vtkXOpenGLRenderWindow (0x8eb6fa0): Could not find a decent visual
> Segmentation fault
> This looks like OpenGL is still looking for a window manager, but this time
> gets confused and aborts. I've checked for any possible mixup between the
> newly installed libs that come with Mesa and the old system ones, but it
> seems like everything is working as it should. Does anyone have any further
> suggestions? I'm using VTK 5.6.0 and Mesa 7.8.2.
> Thanks for your help!
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers