mne.viz.set_3d_options#

mne.viz.set_3d_options(antialias=None, depth_peeling=None, smooth_shading=None, *, multi_samples=None, ssao=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 v1.1.

ssaobool | None

If bool, whether to enable or disable screen-space ambient occlusion (SSAO), which darkens creases such as cortical sulci to give a better sense of depth. It only affects opaque actors (translucent ones are rendered as if it were off) and is only used with VTK 9.7 or newer. This option can also be controlled using an environment variable, e.g., MNE_3D_OPTION_SSAO=false.

New in v1.14.

Notes

New in v0.21.0.

Examples using mne.viz.set_3d_options#

FreeSurfer MRI reconstruction

FreeSurfer MRI reconstruction