[vtkusers] Hide XWindow when offscreen-rendering

Kevin H. Hobbs hobbsk at ohiou.edu
Tue Apr 27 11:08:11 EDT 2010


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100427/55c3f282/attachment.pgp>


More information about the vtkusers mailing list