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't really necessary anymore, except for those times where you need to switch between Hardware OpengL & 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> <<a href="mailto:seanzig@users.sourceforge.net">seanzig@users.sourceforge.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> I've been alternately fighting with this same issue, and very happy with<br>> it. The residue it's left on my mind is: Use straight mesa without DRI.<br>> VTK_USE_OFFSCREEN causes trouble and doesn't fix anything. The examples
<br>> use specific mesa opengl classes and that's not how to get offscreen<br>> rendering to work I was told to use the factories. Failing that you can<br>> always just run an xvfb process to provide a fake xserver.
<br>><br>> I just went back and reran my little learn to do offscreen volume<br>> rendering program (attached). It works in an xterm but when I run it<br>> from the system console it whines that it can't connect to the X server.
<br>> So I guess I'm also back to fighting with offscreen rendering just like<br>> you Randall.<br><br>It should be possible to do off-screen rendering with straight Mesa and<br>OSMesa, though I'm not sure if VTK is easily configured to do so
<br>(haven't tried it). 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. 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. 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'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