Well, I've never gotten it to work in the manner you've described either. 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. While I haven't tried AIX, I have gotten MAngledMesa to work on SGI Irix, Compaq Tru64, and Linux. 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 "tweaked to fit". In my version I change the names of all the output libraries (as recommended) and compile everything 64-bit. 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> <<a href="mailto:jnorris@mcs.anl.gov">jnorris@mcs.anl.gov</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;">There's something I'm missing when I compile the MesaGL libs, whether<br>mangled or not. In both cases, the osdemo doesn't work properly. The
<br>generated tga file is just a black square. So it isn't really<br>surprising that VTK with Mesa or MangledMesa doesn't render offscreen<br>properly. 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. This is with Mesa<br>6.5 on AIX 5.3 (I copied and edited linux-osmesa16, as per the README).<br> With the OSMesa build and the system OpenGL libs, I can compile VTK
<br>and VTK programs. 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. I have turned on VTK_OPENGL_HAS_OSMESA and have properly<br>
defined OSMESA_INCLUDE_DIR and OSMESA_LIBRARY. 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. But at
<br>this point I'll take anything that works.<br><br>John<br><br>Randall Hand wrote:<br>> I've been using VTK Offscreen for a little over a year now and haven't<br>> had too much trouble with it. I use MAngled Mesa & VTK on x-less
<br>> systems all the time.<br>><br>> 1) Did you properly compile Mesa with the -DUSE_MGL_NAMESPACE and other<br>> options enabled?<br>> 2) Did you enable VTK_USE_MANGLED_MESA in VTK?<br>> 3) Did you specify the correct Mesa libraries & include files?
<br>> 4) What version of VTK & Mesa are you using?<br>><br>> On 4/13/06, *Kevin H. Hobbs* <<a href="mailto:kevin.hobbs.1@ohiou.edu">kevin.hobbs.1@ohiou.edu</a><br>> <mailto:<a href="mailto:kevin.hobbs.1@ohiou.edu">
kevin.hobbs.1@ohiou.edu</a>>> wrote:<br>><br>> On Thu, 2006-04-13 at 09:07 -0500, John Norris wrote:<br>> > Progress! I can render offscreen, but it still requires a connection to<br>> > an X server. This is despite the fact that I'm setting
<br>> > vtkGraphicsFactory::OffScreenOnlyMode to 1. Either it's not working as<br>> > advertised (the program still makes X calls), or there's some CMake<br>> > option that I need to set.<br>> ><br>
> > Is there any possible way to render offscreen in Unix without connecting<br>> > to an X server?<br>> ><br>> > This is with straight OpenGL, no Mesa. I could never get that to work<br>> > at all.
<br>> ><br>> > John<br>><br>> I'm very interested in what you discover. I've tried for a while to do<br>> this and failed. I used the system OpenGL only, Mesa only, and system<br>> OpenGL + mangled Mesa, without success.
<br>><br>> 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>