<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div class="gmail_quote">2010/8/26 áÎÄÒÅÊ ôÒÁÞÅÎËÏ <span dir="ltr"><<a href="mailto:goodrone@gmail.com">goodrone@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
is it possible to use VTK rendering capabilities to render something<br>
into PNG images without the need to install X on Linux?<br>
<br>
Currently I'm getting PNG images using vtkRenderWindow,<br>
vtkWindowToImageFilter and vtkPNGWriter. But the program doesn't work<br>
on Ubuntu Server:<br>
<br>
ERROR: In /build/buildd/vtk-5.2.1/Rendering/vtkXOpenGLRenderWindow.cxx, line 536<br>
vtkXOpenGLRenderWindow (0x1c049c0): bad X server connection.<br>
DISPLAY=ERROR: In<br>
/build/buildd/vtk-5.2.1/Rendering/vtkXOpenGLRenderWindow.cxx, line 338<br>
vtkXOpenGLRenderWindow (0x1c049c0): bad X server connection.<br>
DISPLAY=Segmentation fault<br>
<br>
Is it possible to render images without OpenGL and X system?<br>
<br>
Thank you!<br>
Andrew<br><br></blockquote><div><br></div>See if this works:<div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering</a><br clear="all">
<br></div><div>Davidš</div></div><br></div>