Ok, I just recompiled Mesa (without Mangling), and reconfigured VTK to link against the Mesa libGL/libGLU and enabled the "OSMesa" options... and Viola, it works like a champ.. and it's 10x easier to setup than Mangling.
<br><br>So maybe mangling isn&#39;t really necessary anymore, except for those times where you need to switch between Hardware OpengL &amp; Mesa on the fly.. Anyone actually doing that tho?<br><br><div><span class="gmail_quote">
On 12/28/06, <b class="gmail_sendername">Sean Ziegeler</b> &lt;<a href="mailto:seanzig@users.sourceforge.net">seanzig@users.sourceforge.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; I&#39;ve been alternately fighting with this same issue, and very happy with<br>&gt; it. The residue it&#39;s left on my mind is: Use straight mesa without DRI.<br>&gt; VTK_USE_OFFSCREEN causes trouble and doesn&#39;t fix anything. The examples
<br>&gt; use specific mesa opengl classes and that&#39;s not how to get offscreen<br>&gt; rendering to work I was told to use the factories. Failing that you can<br>&gt; always just run an xvfb process to provide a fake xserver.
<br>&gt;<br>&gt; I just went back and reran my little learn to do offscreen volume<br>&gt; rendering program (attached). It works in an xterm but when I run it<br>&gt; from the system console it whines that it can&#39;t connect to the X server.
<br>&gt; So I guess I&#39;m also back to fighting with offscreen rendering just like<br>&gt; you Randall.<br><br>It should be possible to do off-screen rendering with straight Mesa and<br>OSMesa, though I&#39;m not sure if VTK is easily configured to do so
<br>(haven&#39;t tried it).&nbsp;&nbsp;Perhaps this how Sandia is doing it without Mangled<br>Mesa?<br><br>AFAIK, the purpose of Mangled Mesa is to avoid having to reconfigure<br>your system.&nbsp;&nbsp;Mangled Mesa renames (mangles) all the function calls to
<br>insure the OpenGL calls go to Mesa and not the system-installed<br>libGL.so.&nbsp;&nbsp;Also, in VTK, when you turn on Mangled Mesa, it automatically<br>switches to OSMesa to do the off-screen rendering without X.<br><br>I would think straight Mesa + OSMesa would be a cleaner approach, and it
<br>wouldn&#39;t require running xvfb every time either.<br><br>-Sean<br><br></blockquote></div><br><br clear="all"><br>-- <br>----------------------------------------<br>Randall Hand<br>Visualization Scientist<br>ERDC MSRC-ITL