<div dir="ltr"><div><div><div><div><div>Hi Rick,<br><br></div>This CMake script is for the superbuild, correct?<br><br></div>That's definitely the way to go for OS Mesa as it builds the proper version of OS Mesa for you. The superbuild stuff is at <a href="https://gitlab.kitware.com/paraview/paraview-superbuild">https://gitlab.kitware.com/paraview/paraview-superbuild</a>.<br><br></div>Chris, if you have an NVIDIA card with a fairly new driver what I would recommend is using NVIDIA's EGL drivers. There's more information on that at <a href="https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/">https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/</a>.<br><br></div>Best,<br></div>andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 14, 2016 at 2:28 PM, Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US) <span dir="ltr"><<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.mil</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:16px;font-family:Calibri,sans-serif"><div><div><div>Chris - Yeah, so I’m also not sure how Catalyst might be firing this up.   Here’s an example OS_Mesa/cmake command used on one of our generic RHEL6 systems.   With this build, we throw the “—use-offscreen-rendering” flag when we fire up the pvserver.    I think that the critical flags are “osmesa=ON, mesa=OFF, qt=OFF” …..   Can you use your current build in a traditional client-server configuration to verify that the OS_Mesa is built correctly?      That might make it easier to narrow down to a build issue or a Catalyst issue.   Just a thought.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>cmake -DCMAKE_INSTALL_PREFIX:PATH=${<wbr>HOME}/pv/${paraview_version}${<wbr>build_extension} \</div><div>-Ddownload_location=`pwd`/../<wbr>Downloads \</div><div>-DParaView_FROM_GIT=OFF \</div><div>-DParaView_URL=`pwd`/../<wbr>Downloads/ParaView-v${<wbr>paraview_version}-source.tar.<wbr>gz \</div><div>-DCMAKE_BUILD_TYPE=Release \</div><div>-DENABLE_boost=ON \</div><div>-DBoost_NO_BOOST_CMAKE:BOOL=ON \</div><div>-DENABLE_visitbridge:BOOL=ON \</div><div>-DENABLE_cgns=ON \</div><div>-DENABLE_ffmpeg=ON \</div><div>-DENABLE_hdf5=ON \</div><div>-DENABLE_matplotlib=ON \</div><div>-DENABLE_osmesa=ON \</div><div>-DENABLE_mesa=OFF \</div><div>-DPARAVIEW_RENDERING_BACKEND:<wbr>STRING=OpenGL2 \</div><div>-DENABLE_mpi=ON \</div><div>-DUSE_SYSTEM_mpi=ON \</div><div>-DENABLE_numpy=ON \</div><div>-DENABLE_paraview=ON \</div><div>-DENABLE_python=ON \</div><div>-DENABLE_qt=OFF \</div><div>-DENABLE_silo=ON \</div><div>-DENABLE_szip=ON \</div><div>-Dqt_DISABLE_WEBKIT=ON \</div><div>-DMPI_CXX_LIBRARIES:STRING="-<wbr>L${MPI_HOME}/lib -lmpi_cxx -ldl" \</div><div>-DMPI_C_LIBRARIES:STRING="-L${<wbr>MPI_HOME}/lib -lmpi -ldl" \</div><div>-DMPI_LIBRARY:FILEPATH="-L${<wbr>MPI_HOME}/lib -lmpi_cxx -ldl" \</div><div>../Source</div></div><span class=""><div><div><span style="font-family:'Arial Unicode MS';font-size:medium">______________________________<wbr>__</span></div><div style="font-family:'Arial Unicode MS';font-size:medium">Rick Angelini</div><div style="font-family:'Arial Unicode MS';font-size:medium">USArmy Research Laboratory</div><div style="font-family:'Arial Unicode MS';font-size:medium">CISD/HPC Architectures Team</div><div style="font-family:'Arial Unicode MS';font-size:medium">Phone:  <a href="tel:410-278-6266" value="+14102786266" target="_blank">410-278-6266</a></div></div></span></div></div><div><br></div><span><div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt"><span style="font-weight:bold">From: </span> Christopher Neal <<a href="mailto:chrisneal@snumerics.com" target="_blank">chrisneal@snumerics.com</a>> on behalf of Christopher Neal <<a href="mailto:chrisneal@snumerics.com" target="_blank">chrisneal@snumerics.com</a>><br><span style="font-weight:bold">Date: </span> Wednesday, September 14, 2016 at 1:44 PM<br><span style="font-weight:bold">To: </span> Rick Angelini <<a href="mailto:Richard.C.Angelini.CIV@mail.mil" target="_blank">Richard.C.Angelini.CIV@mail.<wbr>mil</a>>, Benson Muite via ParaView <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><span class=""><br><span style="font-weight:bold">Subject: </span> Re: [Non-DoD Source] [Paraview] Building Paraview with OSMESA<br></span></div><div><br></div><div><div><span class="">
All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.
<br><br><hr><br><br></span><div><span class=""><p class="MsoNormal"><span style="font-size:11.0pt">Thanks Rick!<br><br>
I’m running OpenSuse 13.2 64bit. I’m not explicitly starting a pvserver, because I’m running one of the C++ Catalyst examples, which is located at ParaView/Examples/Catalyst/<wbr>CxxFullExample. That is mainly what is confusing me. I’m not sure if I built ParaView
 with osMesa incorrectly, or if that Catalyst example is somehow just telling ParaView ‘Hey, don’t use the offscreen rendering stuff, just go ahead and keep rendering to the screen.”<br><br>
I’m thinking that I should be able to test the offscreen rendering capability independently of that Catalyst example by generating a Python trace of a pipeline that creates an image output, and the running it with a command like:<br>
pvserver –use-offscreen-rendering TestScript.py<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">"Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US)" <<a href="mailto:richard.c.angelini.civ@mail.mil" target="_blank">richard.c.angelini.civ@mail.<wbr>mil</a>><br><b>Date: </b>Wednesday, September 14, 2016 at 1:24 PM<br><b>To: </b>Christopher Neal <<a href="mailto:chrisneal@snumerics.com" target="_blank">chrisneal@snumerics.com</a>>, Benson Muite via ParaView <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br><b>Subject: </b>Re: [Non-DoD Source] [Paraview] Building Paraview with OSMESA<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:'Times New Roman'"><u></u> <u></u></span></p></div></span><div><div><span class=""><div><div><div><p class="MsoNormal"><span style="color:black">Stupid question – when you start up the pvserver process, are you passing it the “—use-offscreen-rendering” flag?    <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="color:black">mpirun –np 8 pvserver —use-offscreen-rendering …….<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="color:black">What’s your build platform?  I have lots and lots of build scripts I can share!   <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p></div><div><div><p class="MsoNormal"><span style="font-size:13.5pt;font-family:'Arial Unicode MS';color:black">______________________________<wbr>__</span><span style="color:black"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:13.5pt;font-family:'Arial Unicode MS';color:black">Rick Angelini<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:13.5pt;font-family:'Arial Unicode MS';color:black">USArmy Research Laboratory<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:13.5pt;font-family:'Arial Unicode MS';color:black">CISD/HPC Architectures Team<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:13.5pt;font-family:'Arial Unicode MS';color:black">Phone:  <a href="tel:410-278-6266" value="+14102786266" target="_blank">410-278-6266</a><u></u><u></u></span></p></div></div></div></div><div><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p></div></span><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;color:black">From: </span></b><span style="font-size:11.0pt;color:black">ParaView <<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a><wbr> < Caution-<a href="mailto:paraview-bounces@paraview.org" target="_blank">mailto:paraview-<wbr>bounces@paraview.org</a> > > on behalf of Christopher Neal <<a href="mailto:chrisneal@snumerics.com" target="_blank">chrisneal@snumerics.com</a> < <wbr>Caution-<a href="mailto:chrisneal@snumerics.com" target="_blank">mailto:chrisneal@<wbr>snumerics.com</a> > ><span class=""><br><b>Date: </b>Wednesday, September 14, 2016 at 12:44 PM<br></span><b>To: </b>Benson Muite via ParaView <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a> < <wbr>Caution-<a href="mailto:paraview@paraview.org" target="_blank">mailto:paraview@<wbr>paraview.org</a> > ><span class=""><br><b>Subject: </b>[Non-DoD Source] [Paraview] Building Paraview with OSMESA<u></u><u></u></span></span></p></div><div><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p></div><div><div><span class=""><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying
 and pasting the address to a Web browser. <u></u><u></u></span></p><div class="MsoNormal" style="text-align:center" align="center"><span style="color:black"><hr align="center" size="2" width="100%"></span></div><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">Hi All,</span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black"> </span><span style="color:black"><u></u><u></u></span></p></span><p class="MsoNormal"><span style="font-size:11.0pt;color:black">I’ve been trying to compile a version of ParaView that uses osMesa. I’ve tried to follow the process that is explained on the wiki (Caution-Caution-<a href="http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D" target="_blank">http://www.<wbr>paraview.org/Wiki/ParaView/<wbr>ParaView_And_Mesa_3D</a> < <wbr>Caution-<a href="http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D" target="_blank">http://www.paraview.<wbr>org/Wiki/ParaView/ParaView_<wbr>And_Mesa_3D</a> >  < Caution-<wbr>Caution-<a href="http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D" target="_blank">http://www.paraview.<wbr>org/Wiki/ParaView/ParaView_<wbr>And_Mesa_3D</a> < Caution-<a href="http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D" target="_blank">http://<wbr>www.paraview.org/Wiki/<wbr>ParaView/ParaView_And_Mesa_3D</a> <wbr>>  > 
 ), but I haven’t been able to get ParaView to render offscreen. I don’t have build errors, but when I run something that saves a screenshot I still see a window pop up on my screen. Would anyone be willing to share their configuration script/command that they
 use for compiling ParaView with osMESA?  <br><span class=""><br>
Also – If I have a python script that creates a screenshot of some geometry, do I need to edit it in any way before running it with a version of ParaView that uses osMesa? Or is all of that handled behind the scenes?<br><br><br>
Thank you,</span></span><span style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:black">Chris N</span><span style="color:black"><u></u><u></u></span></p></div></div></div></div></div></div></div></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>