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

David Doria daviddoria+vtk at gmail.com
Thu Aug 26 10:29:06 EDT 2010


2010/8/26 Андрей Траченко <goodrone at gmail.com>:
> 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

Did you see this at the top of the example:

"You must turn on VTK_OPENGL_HAS_OSMESA in the VTK advanced build
configuration."

I'm not sure if that will help in your case, but it's worth a try if
you didn't try it already.

Thanks,

David



More information about the vtkusers mailing list