Would appreciate some help here on exporting an image with transparent background when running pvpython on a headless paraview installation (without X window or VTKM).
Setting: I have a python script that reads a file and exports an image with transparent background (by setting the argument TransparentBackground=1 in function SaveScreenshot() ).
Now this works as it should when using pvpython from the paraview binaries installed by apt on on a Linux Mint server with X-window. But I need to run the script headless on a server without X-window, so I need a version of paraview with OSMesa and without X support.
I first tried downloading the binaries for headless server support from here that include OSMesa and MPI functionality and running pvpython from there, but was facing the same issue described here, where the problem is solved by building paraview yourself with also the VTKM option turned off: PARAVIEW_USE_VTKM=OFF.
So I have built a version of paraview 5.9.1 following this and this with the following non-default options:
The script now runs on my headless server without throwing any errors, but it does not do the following thing that worked before with the apt version of paraview: exporting the image with transparent background.
Could be related to turning VTKM off? Any idea’s on what could be going on?
Ha, I misunderstood ! Then an issue should be opened.
Yes, I had indeed formulated it ambiguously, but I don’t know how I could now edit the original post to rectify this.
I have rebuilt paraview with the options described above on two different linux mint machines. I got 116 warnings, but no errors, during the building process.
After rebuilding the error of no transparent background for exported images continues to persist. Moreover, I tried to change the background color with the Background() method, which is also completely ignored by pvpython (while it works with the apt version of paraview). So something is going wrong with the backgrounds.
Shall I then create an issue on the paraview gitlab page, is that what you mean? Any important things that I should mention in the issue?