<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In Geant4, we already use offscreen rendering with gl2ps to produce « tests snapshots » and compare them to references files.<div class="">For that we use X11 server « xvfb » : <a href="https://en.wikipedia.org/wiki/Xvfb" class="">https://en.wikipedia.org/wiki/Xvfb</a></div><div class=""><br class=""></div><div class="">In order to use it with your application :</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);" class="">Xvfb :99 -screen 0 1024x768x24 -nolisten tcp <span style="color: rgb(39, 42, 216);" class="">2</span>>&<span style="color: rgb(39, 42, 216);" class="">1</span></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);" class=""><div style="margin: 0px;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">export</span> DISPLAY=:<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">99</span></div><div style="margin: 0px;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">`run_your_app`</span></div></div><div class="">`<span style="font-family: Menlo; font-size: 11px;" class="">kill </span><span style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);" class="">-9 your_Xvfb_process`</span></div><div class=""><span style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);" class=""><br class=""></span></div><div class=""><font color="#272ad8" face="Menlo" class=""><span style="font-size: 11px;" class="">That’s it :)</span></font></div><div class=""><font color="#272ad8" face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><font color="#272ad8" face="Menlo" class=""><span style="font-size: 11px;" class="">Cheers, </span></font></div><div class=""><font color="#272ad8" face="Menlo" class=""><span style="font-size: 11px;" class="">Laurent</span></font></div><div class=""><font color="#272ad8" face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 13 févr. 2015 à 17:33, Andreas Weber <<a href="mailto:octave@tech-chat.de" class="">octave@tech-chat.de</a>> a écrit :</div><br class="Apple-interchange-newline"><div class="">Am 13.02.2015 um 16:26 schrieb Christophe Geuzaine:<br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class="">On 05 Dec 2014, at 19:33, Andreas Weber <<a href="mailto:octave@tech-chat.de" class="">octave@tech-chat.de</a>> wrote:<br class=""><br class="">Dear users and maintainers of gl2ps,<br class=""><br class="">GNU Octave with the FLTK graphics_toolkit uses gl2ps to generate prints.<br class="">This works really fine but we have a long standing bugreport that Octave<br class="">isn't able to produce print without a visible figure<br class="">(<a href="https://savannah.gnu.org/bugs/?func=detailitem&item_id=33180" class="">https://savannah.gnu.org/bugs/?func=detailitem&item_id=33180</a>)<br class=""><br class="">Is it possible or does some of you have experience with<br class="">offscreen-rendering and gl2ps? If possible it would be really great to<br class="">use gl2ps even without a DSIPLAY (for example within a remote session<br class="">via ssh).<br class="">The solution should be crossplatform GNU/Linux, Windows, MacOS capable.<br class=""><br class=""></blockquote><br class="">I have no experience with this; but I would definitely be interested to know if it's possible!<br class=""></blockquote><br class="">Yes, it's definitely possible. The next Octave 4.0 release will use<br class="">OSMesa and gl2ps for offscreen rendering.<br class=""><br class="">If you want I can create a minimalistic example with OSMesa and gl2ps<br class="">for GNU/Linux.<br class=""><br class="">-- Andy<br class=""><br class="">_______________________________________________<br class="">gl2ps mailing list<br class=""><a href="mailto:gl2ps@geuz.org" class="">gl2ps@geuz.org</a><br class="">http://www.geuz.org/mailman/listinfo/gl2ps<br class=""></div></blockquote></div><br class=""></div></body></html>