|
[Sponsors] |
July 23, 2012, 09:53 |
Using offscreen rendering
|
#1 |
New Member
James Walker
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
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 |
|
July 24, 2012, 16:07 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
OK, here there are (at least) two possibilities:
Bruno
__________________
|
|
July 25, 2012, 05:19 |
|
#3 |
New Member
James Walker
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
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 |
|
July 30, 2012, 18:02 |
|
#4 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 * cone = Cone(Resolution=32) cone.Center = [1, 2, 3] shrinkFilter = Shrink(cone) shrinkFilter.UpdatePipeline() Show(shrinkFilter) Render() WriteImage('test2.png') 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
__________________
|
|||
July 11, 2014, 11:07 |
|
#5 | ||
Member
Join Date: Mar 2009
Posts: 90
Rep Power: 17 |
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:
|
|||
August 17, 2014, 12:56 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings aerogt3,
Only today did I finally managed to give a quick look into this. Quote:
Code:
pvbatch --use-offscreen-rendering test.py unset DISPLAY 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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Rendering Speedup (3 Minutes per Step) | Tobi | ParaView | 3 | November 20, 2019 02:33 |
offscreen rendering test | lakeat | OpenFOAM Post-Processing | 0 | July 9, 2014 12:11 |
[General] Off-screen rendering with ParaView | kilroy | ParaView | 1 | October 11, 2013 19:25 |
CFX problem in ubuntu (linux) | Vigneshramaero | CFX | 0 | July 13, 2012 11:22 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |