You should set VTK_USE_OFFSCREEN to on (I&#39;m assuming you&#39;ve already turned on VTK_OPENGL_HAS_OSMESA).  Then you&#39;ll need to set the OSMesa libraries and header files (OSMESA_INCLUDE_DIR and OSMESA_LIBRARY).  When I&#39;ve done this in the past I didn&#39;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&#39;m not sure if this is necessary or not).  Finally, then you&#39;ll need the following in your python script to turn on off screen rendering:<br>
<br><div class="gmail_quote">import paraview.servermanager as sm<br>options = sm.vtkPVOptions()<br>options.SetUseOffscreenRendering(1)<br><br>Andy<br><br>On Sat, Oct 9, 2010 at 11:31 AM, Milos Ilak <span dir="ltr">&lt;<a href="mailto:ilak@mech.kth.se">ilak@mech.kth.se</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br><br>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:<br>

<br><a href="http://www.paraview.org/pipermail/paraview/2010-April/016734.html" target="_blank">http://www.paraview.org/pipermail/paraview/2010-April/016734.html</a><br><br>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 <a href="http://vtkPVConfig.h.in" target="_blank">vtkPVConfig.h.in</a> perhaps? Thanks!<br>

<br>Milos<br><font color="#888888"><br><br><br><br><br><br clear="all"><br>-- <br><font color="#888888"><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>

<div><span>Miloš Ilak</span></div><div>Linné Flow Centre</div><div>KTH 
Mechanics, Stockholm </div><div>+46(0) 8 790-7152</div><div><a href="http://www2.mech.kth.se/%7Eilak/" target="_blank">www2.mech.kth.se/~<span>ilak</span></a><br><br></div></div></span></span>
</div></font><br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>