[vtkusers] Hide XWindow when offscreen-rendering
Lars Friedrich Lars
lars-friedrich at gmx.net
Tue Apr 27 11:46:07 EDT 2010
Hi Kevin,
Thank you Kevin!
I know that it would be possible using OSMesa, but I need to use the vtkOpenGLGPUVolumeRayCastMapper in the background for rendering. This class does not work with Mesa (e.g. see below).
regards,
lars
vtkOpenGLGPUVolumeRayCastMapper.cxx:
[...]
if(strstr(gl_version,"Mesa")!=0)
{
// - GL_VENDOR cannot be used because it can be "Brian Paul" or
// "Mesa project"
// - GL_RENDERER cannot be used because it can be "Software Rasterizer" or
// "Mesa X11"
// - GL_VERSION is more robust. It has things like "2.0 Mesa 7.0.4" or
// "2.1 Mesa 7.2" or "2.1 Mesa 7.3-devel"
// Mesa does not work with multiple draw buffers:
// "framebuffer has bad draw buffer"
// "render clipped 1 ERROR (x506) invalid framebuffer operation ext"
this->LoadExtensionsSucceeded=0;
return;
}
-------- Original-Nachricht --------
> Datum: Tue, 27 Apr 2010 11:08:11 -0400
> Von: "Kevin H. Hobbs" <hobbsk at ohiou.edu>
> An: Lars Friedrich Lars <lars-friedrich at gmx.net>
> CC: vtkusers at vtk.org
> Betreff: Re: [vtkusers] Hide XWindow when offscreen-rendering
> On 04/27/2010 10:03 AM, Lars Friedrich Lars wrote:
> > Hello,
> >
> > I would like to know whether or not it is possible to hide the X-window
> automatically generated by vtkXOpenGLRenderWindow on Linux systems? For
> example the attached code below runs without popping up a window on MSWindows,
> but pops up the window on Linux.
> >
> > Does someone know how I could switch the XWindow invisible? Is there a
> possibility to do this with 'x-commands'? For example in MSWindows I could
> theoretically get the handle the window and then call some API function to
> set the window invisible. Is there a similar possibility when using
> vtkXOpenGLRenderWindow?
> >
> > Thank you!
> >
> > regards,
> >
> > lars
> >
>
> Please see :
>
> http://www.vtk.org/Wiki/VTK/Examples/OffScreenRendering
>
> With VTK Mesa and OSMesa you can run the program in the above link
> without any graphics hardware nor even an X server running.
>
> With an alternate Xserver you can run a VTK program without displaying
> to the real screen or without any graphics hardware.
>
> vncserver :89 -geometry 1280x1024 -depth 24 > vncserver.txt 2>&1 &
> export DISPLAY=:89
> glxgears
> vncserver -kill :89
>
> I believe there are other options but I don't really understand them.
>
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the vtkusers
mailing list