Hello,<br><br>It works for me using the nightly VTK build, but it should be ok in 5.8/5.10. My python script calls (roughly) the following:<br><br>[All connections set up, Offscreen Rendering activated, camera properly positioned, there was an issue that the camera was aligned differently when doing offscreen rendering]<br>
window.Render()<br>window2image.Modified()<br>jpeg_writer.Write()<br><br>window is a vtkXOpenGLRenderWindow and I use a vtkOpenGLRenderer, I sit on a Debian System with proprietary nVidia drivers (304.48) and a GT 520.<br>
NB: I rendered a lot of images using this script, and with vtk 5.8 this caused the X-process to hog/leak memory. This was not the case using VTK6.<br><br>I do not know my way around QT &amp; VTK together, but maybe this helps.<br>
<br>Best regards,<br>Johannes Strecha.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 1:57 AM, Darshan Pai <span dir="ltr">&lt;<a href="mailto:darshanpai@gmail.com" target="_blank">darshanpai@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a QT application and using a QVTkWidget for rendering VTK objects.<br>I recently compiled VTK with offscreen rendering on. <br>
<br>I was trying to take a screenshot of the QVTkWidget , using the vtkWindowToImageFilter.<br>
The problem is that it works on my machine, but the screenshot is empty when trying it in another machine. <br><br>I found out that that if I use VTK without offscreen rendering it works.<br><br>Is there any way to solve this problem? <br>

<br>Regards<span class="HOEnZb"><font color="#888888"><br>Darshan<br>
</font></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>