Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

UI Text Box
typewarning

Please do not use multiple V-Ray installation methods at the same time. If you plan on creating a Portable V-Ray installation for Maya, make sure you have uninstalled any other V-Ray version for Maya.

 


Overview

...

The V-Ray installer can be unpacked and used as a portable version. Creating a Portable Installation provides several advantages over the regular installer:

...

To use the Chaos Unified Login (a single login into whichever Chaos whichever Chaos application grants access to all Chaos applications) with V-Ray portable installation, download and install separately. 

When using V-Ray from a Portable installation, the EULA needs and the Chaos Global Consumer Privacy Policy need to be accepted to start a render. A pop-up window will prompt you to accept the EULA the first time you start a render. Batch rendering is an exception to this. 


UI Text Box
typeinfo

If you are using a V-Ray version older than V-Ray 6, please refer to the Installation from zip guide, as the Portable Installation is not available for those V-Ray versions.

...

4. Set up your license. Visit the Licensing page to find out how.

5. Run Maya or V-Ray Standalone.

...

Unpack the installation into a suitable location, which you can later use to run V-Ray on any computer. Here is a detailed step-by-step guide: 


Tabs Container
directionhorizontal
Tabs Page
titleWindows

  1. Download the V-Ray installer executable (.exe).
  2. Open a Command Prompt. Type out: the location of the installer that you just downloaded -unpackInstall= location where you wish to unpack. Alternatively, you can drag and drop the installer and a target folder for unpacking into the Command Prompt to insert their directories. Press Enter to run the command. As an example, you can create a new folder called vray_builds to hold all portable V-Ray builds. Then, you can make other sub-folders and name them according to the V-Ray build version, for example vray_60002_maya2023 . It should look something like this:

    Code Block
    languagepowershell
    D:\Downloads\vray_adv_60002_maya2023_x64.exe -unpackInstall=D:\vray_builds\vray_60002_maya2023
    Section
    Column
    width30%

    After unpacking the installation, your folder structure should look like this:


    D:\vray_builds\
    ├── vray_60002_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\

     
    Column
    width10%


    Column
    width30%

    Here is an example with two different V-Ray 6 builds for Maya 2023 - each can be deployed with its own shell script and environment.

    D:\vray_builds\
    ├── vray_60002_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\
    ├── vray_60010_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\

     
    Column
    width20%


    UI Text Box
    typeinfo

    The D:\vray_builds location is an example. The Portable Installation can be placed anywhere.

  3. Set the necessary environment variables into a new Command Prompt and run V-Ray for Maya or V-Ray Standalone.

 


Tabs Page
titleLinux

  1. Download the V-Ray installer.
  2. Open a Terminal. Type out: the location of the installer that you just downloaded -unpackInstall= location where you wish to unpack. Alternatively, you can drag and drop the installer and a target folder for unpacking into the Terminal to insert their directories. Press Enter to run the command. As an example, you can create a new folder called vray_builds to hold all portable V-Ray builds. Then, you can make other sub-folders and name them according to the V-Ray build version, for example vray_60002_maya2023 . It should look something like this:

    Code Block
    languagepowershell
    /home/user/Downloads/vray_adv_60002_maya2023_centos7 -unpackInstall=/opt/vray_builds
    Section
    Column
    width30%

    After unpacking the installation, your folder structure should look like this:


    /opt/vray_builds/
    ├── vray_60002_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\

     
    Column
    width10%


    Column
    width30%

    Here is an example with two different V-Ray 6 builds for Maya 2023 - each can be deployed with its own shell script and environment.

    /opt/vray_builds/
    ├── vray_60002_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\
    ├── vray_60010_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\

     
    Column
    width20%


    UI Text Box
    typeinfo
    The  /opt/vray_builds  location is simply an example. The Portable Installation can be unpacked anywhere.
  3. Set the necessary environment variables into a new Terminal and run V-Ray for Maya or V-Ray Standalone.
 


Tabs Page
titlemacOS

  1. Download the V-Ray installer .dmg file and double-click to mount it. By default, it mounts to /Volumes.
  2. Open a Terminal and type out /path/to/run_installer -unpackInstall=</unpack/target/location>.
    As an example, you can create a new folder called  vray_builds  in your root directory to hold all portable V-Ray builds. Then, you can make other sub-folders and name them according to the V-Ray build version, for example  vray_60002_maya2023 . An example unpacking command should look like this:

    Code Block
    languagepowershell
    /Volumes/V-Ray\ for\ Maya\ 2023/vray_adv_60002_maya2023_mavericks_x64.app/Contents/MacOS/run_installer -unpackInstall=/vray_builds/vray_60002_maya2023
    Section
    Column
    width30%

    After unpacking the installation, your folder structure should look like this:


    /vray_builds/
    ├── vray_60002_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\

     
    Column
    width10%


    Column
    width30%

    Here is an example with two different V-Ray 6 builds for Maya 2023 - each can be deployed with its own shell script and environment.

    /vray_builds/
    ├── vray_60002_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\
    ├── vray_60010_maya2023\
    │ ├── maya_root\
    │ ├── maya_vray\
    │ └── vray\

     
    Column
    width20%


    UI Text Box
    typeinfo
    The  /vray_builds  location is simply an example. The Portable Installation can be unpacked anywhere.
  3. Set the necessary environment variables into a new Terminal and run V-Ray for Maya or V-Ray Standalone.


 

Setup for Maya

Anchor
Environment setup
Environment setup

Setup for Maya

...

The easiest way to deploy V-Ray is to use the V-Ray module file that comes with the Portable Installation.

The V-Ray module is located in <unpacked location>/maya_root/modules. It contains all the variables needed to run V-Ray for Maya. It also has a readme part with instructions on how to set the environment using a module file. It can be set using one of two ways:

 


Fancy Bullets
typecircle
  • Recommended: Extend the MAYA_MODULE_PATH variable to contain the folder with the module file. Open Command Prompt or Terminal and type 


    Tabs Container
    directionhorizontal
    Tabs Page
    titleWindows
    UI Text Box
    typeinfo

    The example directory and version names below are for V-Ray 6 for Maya 2023 on Windows where vray_adv_60002_maya2023_x64.exe has been unpacked into D:\vray_builds\vray_60002_maya2023\.

    Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

    Code Block
    languagepowershell
    set MAYA_MODULE_PATH=D:\vray_builds\vray_60002_maya2023\maya_root\modules;%MAYA_MODULE_PATH%
    Tabs Page
    titleLinux
    UI Text Box
    typeinfo

    The example directory and version names below are for V-Ray 6 for Maya 2023 on Linux where vray_adv_60002_maya2023_centos7 has been unpacked into /opt/vray_builds/vray_60002_maya2023/.

    Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

    Code Block
    languagebash
    export MAYA_MODULE_PATH=/opt/vray_builds/vray_60002_maya2023/maya_root/modules:$MAYA_MODULE_PATH
    Tabs Page
    titlemacOS
    UI Text Box
    typeinfo

    The example directory and version names below are for V-Ray 6 for Maya 2023 on macOS where vray_adv_60002_maya2023_mavericks_x64.app has been unpacked into /vray_builds/vray_60002_maya2023/.

    Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

    Code Block
    languagebash
    export MAYA_MODULE_PATH=/vray_builds/vray_60002_maya2023/maya_root/modules:$MAYA_MODULE_PATH

  • Alternative: Move the module file to Maya's module folders.
    • You will need to edit the file to replace "../../maya_vray" with the full path to the maya_vray directory.
    • Then move the module file to the respective Maya versions' modules location. Here's the locations for Maya 2023:
 


Tabs Container
directionhorizontal
Tabs Page
titleWindows
Code Block
languagetext
C:\Program Files\Common Files\Autodesk Shared\Modules\Maya\2023
Tabs Page
titleLinux
Code Block
languagetext
/usr/autodesk/modules/maya/2023
Tabs Page
titlemacOS
Code Block
languagetext
/Users/Shared/Autodesk/modules/maya/2023

...

 



UI Text Box
typetip

A truly portable installation can be deployed with a .bat (Windows) or shell script (Linux, macOS) that extends MAYA_MODULE_PATH and starts Maya. You can have multiple scripts, each starting Maya with the module for a different V-Ray version.

Moving the module file inside Maya's folders is useful for a quick setup, but not truly portable.

...


Anchor
std_note_1
std_note_1

License setup

...

1 (1.1, 1. 2)Before you run V-Ray, make sure that it can find a license.

You can set up your license using the using the tool to set or change your license settings.

Alternatively, you can use the the VRAY_AUTH_CLIENT_FILE_PATH* environment variable and point it to the folder containing vrlclient.xml file that holds the V-Ray license server settings (IP address and port number).

...

UI Expand
titleExample: vrlclient.xml
Code Block
languagexml
 <!--
	Example contents of vrlclient.xml
	In this example, the primary IP address to look for a valid license is 10.0.0.100 at the default 30304 port.
	Alternate servers (hosts) have not been set.
-->
<VRLClient>
	<LicServer>
		<Host>10.0.0.100</Host>
		<Port>30304</Port>
		<Host1></Host1>
		<Port1>30304</Port1>
		<Host2></Host2>
		<Port2>30304</Port2>
		<User></User>
		<Pass></Pass>
	</LicServer>
</VRLClient>

 

Setup for V-Ray Standalone

...

Environment variables

...

The portable install can also be used to run only V-Ray Standalone without running V-Ray for Maya. In this case, the number of environment variables to set is reduced.

The list or of variables to set requires unpacking the same installation build. Read the Unpacking the installation file section for more details.

 

Before you run V-Ray, make sure that it can find a license. See the License setup section of this page.

auitabspage
Tabs Container
titleEnvironment variables
directionhorizontal
Tabs Page
titleWindows
ui-
Tabs Container
titleEnvironment variables
directionhorizontal
arbitrary
Tabs Page
titleWindows
ui-text-box
typeinfo

The example directory and version names below are for V-Ray 6 for Maya 2023 on Windows where vray_adv_60002_maya2023_x64.exe has been unpacked into D:\vray_builds\vray_60002_maya2023\.

Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

OSAction

Variable

LocationDescriptionExample
WindowsExtendVRAY_FOR_MAYAnnnn_PLUGINS

<unpacked_location>\maya_vray\vrayplugins

Anchor
1.1
1.1

Needed for V-Ray Standalone.set VRAY_FOR_MAYA2023_PLUGINS=D:\vray_builds\vray_60002_maya2023\maya_vray\vrayplugins;%VRAY_FOR_MAYA2023_PLUGINS%
WindowsSetVRAY_
OSL
AUTH_
PATH_MAYAnnnn
CLIENT_FILE_PATH 1 arbitrary

<unpacked_location>\vray\opensl

Anchor
1.11.1Loads OSL plugins for V-Ray.set VRAY_OSL_PATH_MAYA2023=D:\vray_builds\vray_60002_maya2023\vray\openslWindowsSetVRAY_AUTH_CLIENT_FILE_PATH 1
locationPoints V-Ray to a V-Ray license.set VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>



UI Text Box
typeinfo

The example directory and version names below are for V-Ray 6 for Maya 2023 on Linux where vray_adv_60002_maya2023_centos7 has been unpacked into /opt/vray_builds/vray_60002_maya2023/.

Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

UI Expand
title
Linux
Legacy Variables for versions prior to V-Ray 6, update 1

If you are using a V-Ray version older than V-Ray 6, update 1, you also need to set the following variables

OSActionVariableLocationDescriptionExample
Linux
Windows
Extend
SetVRAY_OSL_
FOR
PATH_MAYAnnnn
_PLUGINS
<unpacked_location>
/maya_vray/vrayplugins
\vray\openslLoads OSL plugins
Needed
for V-Ray
Standalone
.
export
set VRAY_OSL_
FOR
PATH_MAYA2023
_PLUGINS=/opt/
=D:\vray_builds
/
\vray_60002_maya2023\vray\opensl
Tabs Page
titleLinux
UI Text Box
typeinfo

The example directory and version names below are for V-Ray 6 for Maya 2023 on Linux where vray_adv_60002_maya2023_centos7 has been unpacked into /opt/vray_builds/vray_60002_maya2023/.

Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

OSActionVariable

Location

DescriptionExample
LinuxExtend

VRAY_FOR_MAYAnnnn_PLUGINS

<unpacked_location>/maya_vray/vrayplugins

Anchor
1.1.1.1
1.1.1.1

Needed for V-Ray Standalone.export VRAY_FOR_MAYA2023_PLUGINS=/opt/vray_builds/vray_60002_maya2023/maya_vray/vrayplugins:$VRAY_FOR_MAYA2023_PLUGINS
LinuxSetVRAY_AUTH_CLIENT_FILE_PATH 1 arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>



UI Expand
titleLegacy Variables for versions prior to V-Ray 6, update 1

If you are using a V-Ray version older than V-Ray 6, update 1, you also need to set the following variables:

OSActionVariableLocationDescriptionExample
/maya_vray/vrayplugins:$VRAY_FOR_MAYA2023_PLUGINS
LinuxSetVRAY_OSL_PATH_MAYA nnnn<unpacked_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2024=/opt/vray_builds/vray_60002_maya2023/vray/opensl
LinuxExtendLD_LIBRARY_PATH<unpacked_location>/vray/lib
anchor
1.1.1.1
1.1.1.1
Required to run V-Ray itself.export LD_LIBRARY_PATH=/opt/vray_builds
/vray_60002_maya2023
/vray
/lib:$LD_LIBRARY_PATHLinuxSetVRAY_AUTH_CLIENT_FILE_PATH 1.1 arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>
_60002_maya2023/vray/lib:$LD_LIBRARY_PATH
Linux
Tabs Page
titlemacOS
Tabs Page
title
UI Text Box
typeinfo

The example directory and version names below are for V-Ray 6 for Maya 2023 on macOS where vray_adv_60002_maya2023_mavericks_x64.app has been unpacked into /vray_builds/vray_60002_maya2023/.

Here is a list of the environment variables and their descriptions and examples. An example of a complete setup will be given further below.

OSActionVariable

Location

DescriptionExamplemacOSExtend

DescriptionExample

macOS

Extend

VRAY_FOR_MAYAnnnn_PLUGINS

<unpacked_location>/vray/VRay.App/Contents/MacOS/plugins

Anchor
1.2.1.2
1.2.1.2

Needed for V-Ray Standalone.

export VRAY_FOR_

MAYAnnnn

MAYA2023_PLUGINS

<unpacked_location>

=/vray_builds/vray_60002_maya2023/vray/VRay.App/Contents/MacOS/

pluginsNeeded for

plugins:$VRAY_FOR_MAYA2023_PLUGINS

macOS

Set

VRAY_AUTH_CLIENT_FILE_PATH 1

arbitrary location

Points V-Ray to a V-Ray

Standalone

license.

export VRAY_AUTH_

FOR

CLIENT_

MAYA2023

FILE_PATH=<folder_containing_vrlclient.xml>



Required to run V-Ray
UI Expand
titleLegacy Variables for versions prior to V-Ray 6, update 1

If you are using a V-Ray version older than V-Ray 6, update 1, you also need to set the following variables:

OSActionVariableLocationDescriptionExample
PLUGINS=/vray_builds/vray_60002_maya2023/vray/VRay.App/Contents/MacOS/plugins:$VRAY_FOR_MAYA2023_PLUGINS
macOSSetVRAY_OSL_PATH_MAYA nnnn<unpacked_location>/vray/openslLoads OSL plugins for V-Ray.export VRAY_OSL_PATH_MAYA2023=/vray_builds/vray_60002_maya2023/vray/opensl
macOSExtendDYLD_LIBRARY_PATH
<unpacked_location> /vray/lib
<unpacked_location> /vray/lib
Required to run V-Ray 
Anchor
1.2.1.21.2.1.2
itself.
export DYLD_LIBRARY_PATH=/vray_builds/vray_60002_maya2023/vray/lib:$DYLD_LIBRARY
_PATHmacOSSetVRAY_AUTH_CLIENT_FILE_PATH 1.2 arbitrary locationPoints V-Ray to a V-Ray license.export VRAY_AUTH_CLIENT_FILE_PATH=<folder_containing_vrlclient.xml>

Before you run V-Ray, make sure that it can find a license. See the License setup section of this page

_PATH


Tags

...

The [STDROOT] and [PLUGINS] tags in the script are normally typically replaced with their respective directories by the V-Ray installer. However, but when if you are using a version earlier than V-Ray 6, update 1, and performing a portable installation, you need to manually replace them manuallythese tags. The [STDROOT] tag needs to be replaced be replaced with the the full path to the vray folder in the portable file. The The [PLUGINS] tag needs to be replaced with the full path to the maya_vray folder in the portable file. The tags are located in the following files: 


Section
Column
width50%

Linux and MacOSmacOS:

maya_vray/binvray/VRay.app/Contents/MacOS/vray.bin

maya_vray/vray/binVRay.app/Contents/MacOS/vrayserver

vray/vray_netinstall_client_setup.sh

vray/samples/appsdk/setenv39.sh

vray/bin/vraymayaserver.conf

vray/bin/registerVRayServerDaemon

vray/bin/initVRayServerDaemon

vray/bin/vraymayaserver.service

maya_vray/bin/plgparamsplgparamsdata

Column
width50%

Windows:

maya_vray/bin/plgparams

 

...

plgparamsdata


...


If you want to use any additional tools like the standalone denoiser, or the VRIMG to OpenEXR converter, etc., then also add <unpacked_location>/vray/bin to the PATH environment variable.

UI Text Box
colorlight-yellow
iconnote
  • Please note that by default the V-Ray installer will set the TdrLevel (that is GPU timeout detection and recovery) to 0 (disabled).
  • V-Ray Standalone can not be ran if Microsoft Visual C++ Redistributable v143+ is not installed.