Hi Milos,<br><br>Please reply to the whole list.<br><br>On one of the machines I use I've set them to:<br> OPENGL_INCLUDE_DIR  /packages/Mesa-7.2/include                                                     <br> OPENGL_gl_LIBRARY  /packages/Mesa-7.2/lib64/libGL.so                                              <br>
 OPENGL_glu_LIBRARY /packages/Mesa-7.2/lib64/libGLU.so                                             <br> OPENGL_xmesa_INCLUDE_DIR /packages/Mesa-7.2/include                                                     <br> OSMESA_INCLUDE_DIR   /packages/Mesa-7.2/include                                                     <br>
 OSMESA_LIBRARY        /packages/Mesa-7.2/lib64/libOSMesa.so      <br>VTK_OPENGL_HAS_OSMESA           ON <br>VTK_USE_OFFSCREEN          ON<br><br><div class="gmail_quote">On Sat, Oct 9, 2010 at 12:05 PM, Milos Ilak <span dir="ltr"><<a href="mailto:ilak@mech.kth.se">ilak@mech.kth.se</a>></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 Andy,<br><br>thanks! I have figured out that these are the options I need, but where and how should I set them? This ccmake business is a bit confusing! I would appreciate some help on that part of the process. Regards,<br>
<font color="#888888">
<br>Milos</font><div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Sat, Oct 9, 2010 at 5:57 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></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;">
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:<br>
<br><div class="gmail_quote">import paraview.servermanager as sm<br>options = sm.vtkPVOptions()<br>options.SetUseOffscreenRendering(1)<br><br>Andy<div><div></div><div><br><br>On Sat, Oct 9, 2010 at 11:31 AM, Milos Ilak <span dir="ltr"><<a href="mailto:ilak@mech.kth.se" target="_blank">ilak@mech.kth.se</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>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></div></div>_______________________________________________<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>
</blockquote></div><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>
</div></div></blockquote></div><br>