[vtkusers] Rendering to images without X (Linux)?
David Doria
daviddoria+vtk at gmail.com
Thu Aug 26 10:01:43 EDT 2010
2010/8/26 Андрей Траченко <goodrone at gmail.com>
> Hello,
>
> is it possible to use VTK rendering capabilities to render something
> into PNG images without the need to install X on Linux?
>
> Currently I'm getting PNG images using vtkRenderWindow,
> vtkWindowToImageFilter and vtkPNGWriter. But the program doesn't work
> on Ubuntu Server:
>
> ERROR: In /build/buildd/vtk-5.2.1/Rendering/vtkXOpenGLRenderWindow.cxx,
> line 536
> vtkXOpenGLRenderWindow (0x1c049c0): bad X server connection.
> DISPLAY=ERROR: In
> /build/buildd/vtk-5.2.1/Rendering/vtkXOpenGLRenderWindow.cxx, line 338
> vtkXOpenGLRenderWindow (0x1c049c0): bad X server connection.
> DISPLAY=Segmentation fault
>
> Is it possible to render images without OpenGL and X system?
>
> Thank you!
> Andrew
>
>
See if this works:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100826/c473dce2/attachment.htm>
More information about the vtkusers
mailing list