Well, I've never gotten it to work in the manner you've described either.&nbsp; I always wound up with one of 2 problems: 1) an unwanted popup window, or 2) blank displays.<br><br>The only way I know to get it to work the way you're describing is by using true Mangling.&nbsp; While I haven't tried AIX, I have gotten MAngledMesa to work on SGI Irix, Compaq Tru64, and Linux.&nbsp; There are instructions on the VTK Wiki at 
<a href="http://www.vtk.org/Wiki/VTK_FAQ#How_to_build_VTK_for_offscreen_rendering.3F">http://www.vtk.org/Wiki/VTK_FAQ#How_to_build_VTK_for_offscreen_rendering.3F</a> although they have to be &quot;tweaked to fit&quot;.&nbsp; In my version I change the names of all the output libraries (as recommended) and compile everything 64-bit.&nbsp; If those instructions don't shed any light on it, then I'll be happy to send you my config scripts tomorrow to see if they shed any further light on the subject.
<br><br>I'm using Mesa 6.4.2 and VTK 5.0 (cvs branch).<br><br><div><span class="gmail_quote">On 4/13/06, <b class="gmail_sendername">John Norris</b> &lt;<a href="mailto:jnorris@mcs.anl.gov">jnorris@mcs.anl.gov</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;">There's something I'm missing when I compile the MesaGL libs, whether<br>mangled or not.&nbsp;&nbsp;In both cases, the osdemo doesn't work properly.&nbsp;&nbsp;The
<br>generated tga file is just a black square.&nbsp;&nbsp;So it isn't really<br>surprising that VTK with Mesa or MangledMesa doesn't render offscreen<br>properly.&nbsp;&nbsp;I've done some googling on this but haven't found anything<br>helpful.
<br><br>If I compile only libOSMesa, then the osdemo works.&nbsp;&nbsp;This is with Mesa<br>6.5 on AIX 5.3 (I copied and edited linux-osmesa16, as per the README).<br>&nbsp;&nbsp;With the OSMesa build and the system OpenGL libs, I can compile VTK
<br>and VTK programs.&nbsp;&nbsp;In this case, I'm /not/ using mangling (since I'm not<br>compiling MesaGL or MesaGLU), and I don't have VTK_USE_MANGLED_MESA<br>turned on.&nbsp;&nbsp;I have turned on VTK_OPENGL_HAS_OSMESA and have properly<br>
defined OSMESA_INCLUDE_DIR and OSMESA_LIBRARY.&nbsp;&nbsp;The GL-related options<br>point to the system OpenGL stuff.<br><br>I would prefer to be able to compile only OSMesa, since I'll use the<br>system OpenGL libs for everything except offscreen rendering.&nbsp;&nbsp;But at
<br>this point I'll take anything that works.<br><br>John<br><br>Randall Hand wrote:<br>&gt; I've been using VTK Offscreen for a little over a year now and haven't<br>&gt; had too much trouble with it.&nbsp;&nbsp;I use MAngled Mesa &amp; VTK on x-less
<br>&gt; systems all the time.<br>&gt;<br>&gt; 1) Did you properly compile Mesa with the -DUSE_MGL_NAMESPACE and other<br>&gt; options enabled?<br>&gt; 2) Did you enable VTK_USE_MANGLED_MESA in VTK?<br>&gt; 3) Did you specify the correct Mesa libraries &amp; include files?
<br>&gt; 4) What version of VTK &amp; Mesa are you using?<br>&gt;<br>&gt; On 4/13/06, *Kevin H. Hobbs* &lt;<a href="mailto:kevin.hobbs.1@ohiou.edu">kevin.hobbs.1@ohiou.edu</a><br>&gt; &lt;mailto:<a href="mailto:kevin.hobbs.1@ohiou.edu">
kevin.hobbs.1@ohiou.edu</a>&gt;&gt; wrote:<br>&gt;<br>&gt; On Thu, 2006-04-13 at 09:07 -0500, John Norris wrote:<br>&gt; &gt; Progress!&nbsp;&nbsp;I can render offscreen, but it still requires a connection to<br>&gt; &gt; an X server.&nbsp;&nbsp;This is despite the fact that I'm setting
<br>&gt; &gt; vtkGraphicsFactory::OffScreenOnlyMode to 1.&nbsp;&nbsp;Either it's not working as<br>&gt; &gt; advertised (the program still makes X calls), or there's some CMake<br>&gt; &gt; option that I need to set.<br>&gt; &gt;<br>
&gt; &gt; Is there any possible way to render offscreen in Unix without connecting<br>&gt; &gt; to an X server?<br>&gt; &gt;<br>&gt; &gt; This is with straight OpenGL, no Mesa.&nbsp;&nbsp;I could never get that to work<br>&gt; &gt; at all.
<br>&gt; &gt;<br>&gt; &gt; John<br>&gt;<br>&gt; I'm very interested in what you discover. I've tried for a while to do<br>&gt; this and failed.&nbsp;&nbsp;I used the system OpenGL only, Mesa only, and system<br>&gt; OpenGL + mangled Mesa, without success.
<br>&gt;<br>&gt; I know I'm missing something.<br><br>--<br>John Norris<br>Research Programmer<br>Center for Simulation of Advanced Rockets<br><a href="http://www.uiuc.edu/ph/www/jnorris">http://www.uiuc.edu/ph/www/jnorris
</a><br></blockquote></div><br>