nipy / PySurfer

Cortical neuroimaging visualization in Python
https://pysurfer.github.io/
BSD 3-Clause "New" or "Revised" License
240 stars 97 forks source link

offscreen rendering still requires exported display #124

Closed gciccarelli3 closed 7 years ago

gciccarelli3 commented 9 years ago

Hi,

I'm running pysurfer on a cluster and pysurfer is still exporting a display "in the background".

I'm running ubuntu 14.04 LTS, ssh -XYC into cluster, python pysurferscrip.py

and pysurfer launches a VTK/opengle process of somekind on the computer I'm using to ssh.


brain=Brain('fsaverage', hemi_str, 'pial', curv=None, config_opts={"cortex": "bone", "background": "white"}, offscreen=True)

mwaskom commented 9 years ago

I'm not an expert on that side of things but my understanding is that yes, Mayavi always needs to use a graphics client to draw things, and the offscreen flag just prevents a full GUI window from being launched. For truly "offscreen" rendering I think you'll want to look into using Xvfb, which I think is the best approach for using mayavi on a cluster.

lrq3000 commented 8 years ago

Maybe this can be of interest to you: Mayavi Tips and Tricks: Off-screen rendering. In particular, you can use a virtual framebuffer.

larsoner commented 7 years ago

Yes, check the Mayavi docs for how to deal with this. You can get full software rendering with Mesa if you really want