[vtkusers] Rendering to images without X (Linux)?

Андрей Траченко goodrone at gmail.com
Thu Aug 26 10:26:46 EDT 2010


Thank you David, I haven't seen this example before...

Unfortunately it doesn't work for me:
$ ./OffScreenRendering
ERROR: In /build/buildd/vtk-5.2.1/Rendering/vtkXOpenGLRenderWindow.cxx, line 536
vtkXOpenGLRenderWindow (0x8fb3a0): bad X server connection.
DISPLAY=ERROR: In
/build/buildd/vtk-5.2.1/Rendering/vtkXOpenGLRenderWindow.cxx, line 338
vtkXOpenGLRenderWindow (0x8fb3a0): bad X server connection.
DISPLAY=Segmentation fault

Neither works my Python script using the same idea.

Should I try a newer version of VTK? Should I try to compile it by
myself with some additional configuration?

Andrew

2010/8/26 David Doria <daviddoria+vtk at gmail.com>:
> 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
>



More information about the vtkusers mailing list