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
antialiasbool | 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_peelingbool | 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_shadingbool | 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_samplesint

Number of multi-samples. Should be 1 for MESA for volumetric rendering to work properly.

New in version 1.1.

Notes

New in version 0.21.0.