28.3. Environment variables

Similar to the values in the mevislab.prefs file there are also some settings which can be set though environment variables, mostly to correct some misbehavior of the platform. We have collected some here that might be of use for you:

NameTypeDescription
General
MLAB_ROOTpath

The path where the MeVisLab packages are installed. This must be set if you call some shell scripts that, e.g, create compiler projects or generate installers. The Windows installer will set this automatically.

Fixes
MLAB_FORCE_MESAbool

(Windows only) If set to 1, MeVisLab will always try to use the Mesa software OpenGL driver supplied with the SDK. This can be used if the system OpenGL driver does not work.

MLAB_QT_OPENGL_WIDGET"old" or "new"

Qt deprecated the old OpenGL widget with Qt 5. Since the first versions of the new widget had problems on some systems, you can switch back to the old widget by setting the value "old" - but since the widget is deprecated you might run into other problems.

MLAB_OPENGL_10BITbool

Force MeVisLab to support 10bit color depth in OpenGL in case the auto-detection fails.

MLAB_TTF_FONTpath

Override font to use for font rendering. Must be a true type font.

MLAB_DISABLE_BUSY_CURSORbool

(Linux and Windows only) Disable display of busy cursor when MeVisLab is calculating.

MLAB_SOQT_ROUNDUP_WHEEL_DELTAbool

Fixes misbehaving mouse wheel in Inventor views (for some buggy mouse drivers).

SOVIEW2D_NO_SHADERbool

Do not use OpenGL shaders in SoView2D views.

Debugging
MEVISLAB_DEBUGGERstring

(Linux only) Set debugger command to call if MeVisLab crashes. Command is called with executable name and process ID.

MLAB_DEBUG_PYTHON_IMPORTstring

Print additional information about imports happening in Python code.

IV_DEBUG_SHADER, IV_DEBUG_SHADER_LOG, and IV_DEBUG_SHADER_STRINGbool

(Used by SoShader framework) Get additional log output to debug shaders.

GVR (Giga Voxel Renderer) - OpenGL Compatibility
GVR_NO_3D_TEXTURESbool

Do not use 3D textures in the GVR rendering.

GVR_NO_GLSLbool

Do not use OpenGL shader language.

GVR_NO_NONPOW2bool

Do not use texture that do not have a size that is a power of two.

GVR_NO_GEOMETRYSHADERbool

Do not use geometry shaders.

GVR_USE_FLOAT_LUTbool

Use look-up-tables with float values (instead of integer).

GVR_NO_BINDLESSbool

Do not use bindless textures.

GVR_PRINT_SHADER_WARNINGSbool

Prints additional diagnostic messages when OpenGL shaders are compiled.

Special Settings
MLAB_GPU_AFFINITYint

(NVidia graphics only) Force MeVisLab to run on a specific graphics card if several are installed on a system.

MLAB_CUDA_DEVICEint

(Used by PathTracer framework) Select the CUDA device to do calculations on.

MLAB_NUMBER_CONCURRENT_PANEL_RENDERINGint

(Used by RemotePanelRendering module) Serialize GPU access of parallel running processes.