Page History
...
The V-Ray SDK is installed with the "Workstation" installation type and is normally installed in the folder "C:\Program Files\Chaos Group\V-Ray\3ds Max NNNN" where NNNN is the version of 3ds Max (20142020, 20132021, etc.).
Folder Structure
...
The V-Ray SDK includes the following folders:
...
\samples – Includes the source code for some of the plugins that ship with V-Ray (e.g. the VRayDomeCamera plugin), as well as some additional samples (e.g. VRayBlinnMtl)
Compiling the Samples
...
The sample projects come with a CMake project that can be used to generate Microsoft Visual Studio 2017 solutions or Ninja projects.
A matching 3ds Max SDK is needed to build the example projects. The setup needs the CMake variable 3DSMAX_SDK_ROOT set to point to the 3ds Max SDK root.
UI Text Box | ||
---|---|---|
| ||
V-Ray solutions have some options that are conditionally defined in few stages of the CMake configuration process. Because of this when using the CMake GUI one may have perform the configure step few times so all the options are set-up. |
To get started with the samples for 3ds Max 2022:
- Open command prompt in the samples directory, e.g. C:\Program Files\Chaos Group\V-Ray\3ds Max 2022\samples
- Execute CMake, e.g. cmake -B"C:\build\VRay3dsMax2022Samples" -H"." -G"Visual Studio 15 2017" -A"x64" -T"v141" -D"3DSMAX_SDK_ROOT=D:\conan\pack\Max2022SDK"
If no errors occurred, the solutions should be in the output directory specified by "-B".
Expand | ||
---|---|---|
| ||
The project files for the samples are in .dsp file format and |
...
need to be converted for newer versions of |
...
Visual Studio |
...
. To build the samples for 3ds Max 2013 and later, follow these steps |
...
:
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
You should now be able to build the project successfully. |