mne.viz.set_3d_options#
- mne.viz.set_3d_options(antialias=None, depth_peeling=None, smooth_shading=None, *, multi_samples=None)[source]#
Set 3D rendering options.
- Parameters:
- antialias
bool
|None
If bool, whether to enable or disable full-screen anti-aliasing. False is useful when renderers have problems (such as software MESA renderers). If None, use the default setting. This option can also be controlled using an environment variable, e.g.,
MNE_3D_OPTION_ANTIALIAS=false
.- depth_peeling
bool
|None
If bool, whether to enable or disable accurate transparency. False is useful when renderers have problems (for instance while X forwarding on remote servers). If None, use the default setting. This option can also be controlled using an environment variable, e.g.,
MNE_3D_OPTION_DEPTH_PEELING=false
.- smooth_shading
bool
|None
If bool, whether to enable or disable smooth color transitions between polygons. False is useful on certain configurations where this type of shading is not supported or for performance reasons. This option can also be controlled using an environment variable, e.g.,
MNE_3D_OPTION_SMOOTH_SHADING=false
.- multi_samples
int
Number of multi-samples. Should be 1 for MESA for volumetric rendering to work properly.
New in version 1.1.
- antialias
Notes
New in version 0.21.0.