Environment Variables#

The AR SDK uses the following environment variables:

  • NVAR_MODEL_DIR

    If the application does not provide the path to the model’s directory by setting the NvAR_Parameter_Config_ModelDir string, the SDK tries to load the models from the path in the NVAR_MODEL_DIR environment variable.

    The SDK installer sets NVAR_MODEL_DIR to %ProgramFiles%\NVIDIA Corporation\NVIDIA AR SDK\models.

  • NV_AR_SDK_PATH

    By default, applications that use the SDK try to load the SDK DLL and its dependencies from the SDK installation directory, such as %ProgramFiles%\NVIDIA Corporation\NVIDIA AR SDK\models. Applications might also want to include and load the SDK DLL and its dependencies directly from the application folder.

    To prevent the files from being loaded from the installation directory, the application can set this environment variable to USE_APP_PATH. If NV_AR_SDK_PATH is set to USE_APP_PATH, instead of loading the binaries from the Program Files installation directory, the SDK follows the standard OS search order to load the binaries, such as the app folder followed by the PATH environment variable.

    Important

    Set this variable only for the application process. Setting this variable as a user or system variable affects other applications that use the SDK.