[Paraview] setting the flags for compilation for offscreen rendering support

Andy Bauer andy.bauer at kitware.com
Sat Oct 9 11:57:54 EDT 2010

You should set VTK_USE_OFFSCREEN to on (I'm assuming you've already turned
on VTK_OPENGL_HAS_OSMESA).  Then you'll need to set the OSMesa libraries and
header files (OSMESA_INCLUDE_DIR and OSMESA_LIBRARY).  When I've done this
in the past I didn't set VTK_USE_DISPLAY so you can probably leave that as
is.  To be safe, you may want to set OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY,
and OPENGL_glu_LIBRARY to the OSMesa versions of those (I'm not sure if this
is necessary or not).  Finally, then you'll need the following in your
python script to turn on off screen rendering:

import paraview.servermanager as sm
options = sm.vtkPVOptions()


On Sat, Oct 9, 2010 at 11:31 AM, Milos Ilak <ilak at mech.kth.se> wrote:

> Hi,
> I have been using ParaView with Python scripts successfully, but I still
> have the problem of offscreen rendering not working properly, i.e., I always
> get a screen popping up every few seconds while the script is running. From
> the discussion below I understand that setting up offscreen rendering
> properly is done at compile time:
> http://www.paraview.org/pipermail/paraview/2010-April/016734.html
> But I am not sure where I need to set the flags mentioned, such as
> VTK_USE_OFFSCREEN, VTK_USE_DISPLAY, etc. I would like to try this myself
> before I ask the admins on the cluster I am using to do it for me. I have
> been looking at the Makefiles and config files in the 3.8.1 version, but
> there are so many of them...Should this be done in vtkPVConfig.h.inperhaps? Thanks!
> Milos
> --
>  Miloš Ilak
> Linné Flow Centre
> KTH Mechanics, Stockholm
> +46(0) 8 790-7152
> www2.mech.kth.se/~ilak <http://www2.mech.kth.se/%7Eilak/>
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101009/f0a90593/attachment-0001.htm>

More information about the ParaView mailing list