We expect more information especially PyQt5, VTK and PyVista.
Personally, I think that this kind of transparency issue is not unknown with mayavi
and the origin can range from an incompatibility issue with intel integrated graphic
cards, the gpu driver version or the behaviour of vtk around opacity in general.
The easiest way i know to fix this for mayavi is to enable depth peeling:
But this comes at the price of slightly heavier rendering operations.
Another option is to change the 3d backend to pyvista before the plot:
mne.viz.set_3d_backend("pyvista")
Hopefully this helps,
Guillaume
De: "Jacques Pesnot" <jacques.pesnot at hotmail.fr>
?: "mne analysis" <mne_analysis at nmr.mgh.harvard.edu>
Envoy?: Mercredi 10 Juin 2020 12:05:38
Objet: [Mne_analysis] Problem : transparent brain with plot_alignment.
Thanks a lot Guillaume for your (super quick !) answer !
I tried what you have suggested but did not manage to solve the problem ... So I spent the last 4 hours -_-' trying different things and found that the problem was coming from Ubuntu driver. So for the record, I installed the NVIDIA driver and disabled the "nouveau" default driver as indicated here : https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux