- Clone the repository: Blender Libraries.
- Check out the branch blender-v4.5-release (or the respective branch for version 4.4 or 5.0).
- Clone the repository: ZeroMQ Library.
- Check out the tag v4.3.4.
- Build the library by following the instructions provided in the repository.
- Create a folder named
zmq_buildand organize the output files into the following structure:
zmq_build
│
└───bin
│ └───libzmq-v142-mt-4_3_4.dll
|
└───include
│ └───zmq.h
│ └───zmq_utils.h
│
└───lib/Release/v142
│ └───libzmq-v142-mt-4_3_4.lib
Get boost v 1.82. It can be obtained from the blender-v4.3-release branch of Windows Blender Libraries or MacOS Blender Libraries
Clone Nanobind v 2.11 from https://github.com/wjakob/nanobind (tag v.2.11.0)
Create the folder passed as the ADDON_PATH parameter to cmake in the next step.
- The
BLENDER_VERparameter specifies the Blender version (currently 4.4, 4.5 and 5.0 are supported) for which this build is intended. - The path passed in 'ADDON_PATH' parameter must exist before the command is run
Generate a Visual Studio project with the following command:
cmake -S ./vray_for_blender_addon \
-B ./build \
-G "Visual Studio 17 2022" \
-A x64 -DWITH_TESTS=0 \
-DADDON_PATH="./install" \
-DBOOST_LIBDIR="path/to/boost" \
-DZMQ_LIBDIR="path/to/zmq_build" \
-DNANOBIND_LIBDIR="path/to/nanobind" \
-DBLENDER_SDK_ROOT="path/to/lib-windows_x64" \
-DBLENDER_VER="4.5"
Build the plugin
- Open build/VRayForBlender.sln solution in Visual Studio
- Build the ALL_BUILD project to produce the addon binaries
- Build the INSTALL project to copy the addon files to the install location
cmake -S . \
-B ./build \
-G Ninja \
-DCMAKE_OSX_ARCHITECTURES="arm64" \
-DCMAKE_BUILD_TYPE=Release \ # or NoOpt
-DWITH_TESTS=0 \
-DADDON_PATH="./install" \
-DBOOST_LIBDIR="path/to/boost" \
-DNANOBIND_LIBDIR="path/to/nanobind" \
-DBLENDER_SDK_ROOT="path/to/lib-macos_arm64" \
-DBLENDER_VER=4.5
ninja installAt the moment, we’re not able to accept external contributions. However, if you have any questions or would like to explore potential collaboration, feel free to reach out to us.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or(at your option) any later version. See the LICENSE file for details.