Environment Variables#
The AR SDK uses the following environment variables:
NVAR_MODEL_DIRIf the application does not provide the path to the model’s directory by setting the
NvAR_Parameter_Config_ModelDirstring, the SDK tries to load the models from the path in theNVAR_MODEL_DIRenvironment variable.The SDK installer sets
NVAR_MODEL_DIRto%ProgramFiles%\NVIDIA Corporation\NVIDIA AR SDK\models.NV_AR_SDK_PATHBy 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. IfNV_AR_SDK_PATHis set toUSE_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 thePATHenvironment 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.