<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi vtk users,<br><br>I'm writing to get a piece of information about VTK
 Offscreen options. I have a quite big project with VTK rendering using 
QVTKWidget. It works great. Now, I would like to take screenshots of my 
user interface during the execution for automatic test purposes. 
Unfortunately, this is not working, all vtk scenes appear empty on the 
saved images.<br><br>I read few lines about a VTK option called 
offscreen. It's available in the CMake configuration. I tested it and it
 worked great. Unfortunately, with the option checked, I couldn't have 
"classic" rendering, only offscreen.<br><br>So, here comes my question : <br>Is
 there a way to enable/disable easily the offscreen configuration in the
 code ? Indeed, I would like to avoid to have 2 vtk installation on my 
computer : one using offscreen, the other one using
 classic rendering.<br><br>I have been trying to call SetOffscreenOn/Off
 on the RenderWindow before the first render but it didn't work. With 
the option set to On, I still had empty scenes in my screenshots and no 
classic rendering. Don't understand why.<br><br>I thank you for your help.<br>Best.<br>James.</div></div></body></html>