Using offscreen rendering
I have create some scripts for producing images and animations of data rendered in ParaView. I run these scripts in pvbatch, but a window opens in the top left when the script is ran, and closes at the end.
How can I achieve total off-screen rendering? I have also used the flag --use-offscreen-rendering, but I still get the same result. The help for --use-offscreen-rendering says :"This option only works with software rendering or mangled mesa on Unix". I am using Red Hat Linux. How can I enable this? Thanks for any help James |
Hi James,
OK, here there are (at least) two possibilities:
Bruno |
Hi Bruno,
if you could let me know the results that would be great! At the moment I am using Xvfb (X virtual framebuffer) so that nothing is shown to the screen. Thanks James |
Hi James,
OK, the test machine (virtual in fact) was an Ubuntu 11.10 x86_64. The test script I used was this: Code:
from paraview.simple import * Code:
./pvbatch --use-offscreen-rendering As for RHEL, it looks like you need to install the package "mesa-libOSMesa" (and maybe "mesa-libOSMesa-devel" as well). The "OSMesa" stands for: Quote:
Quote:
Best regards, Bruno |
I have a cluster on which I am trying to run, but keep getting the following errors:
Quote:
However, as soon as I run on multiple nodes via submit script, I get the above errors. Here are the relevant parts of my submit script: Quote:
|
Greetings aerogt3,
Only today did I finally managed to give a quick look into this. Quote:
Code:
pvbatch --use-offscreen-rendering test.py Therefore, either you used "ssh -X" or a VNC connection to access the cluster node, so that there was a valid display ready to be used for off-screen rendering. The solution seems to be to build ParaView with OSMesa: http://www.paraview.org/Wiki/Setting...OSMesa_support - which means OSMesa will then have to be installed on all cluster nodes and the same ParaView build will also have to be installed on them. Best regards, Bruno |
All times are GMT -4. The time now is 13:45. |