https://github.com/gpuopen-librariesandsdks/radeonprorenderblenderaddon
This hardware-agnostic rendering plug-in for Blender uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
https://github.com/gpuopen-librariesandsdks/radeonprorenderblenderaddon
blender gpu ray-tracing rendering
Last synced: 3 months ago
JSON representation
This hardware-agnostic rendering plug-in for Blender uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
- Host: GitHub
- URL: https://github.com/gpuopen-librariesandsdks/radeonprorenderblenderaddon
- Owner: GPUOpen-LibrariesAndSDKs
- License: apache-2.0
- Created: 2020-03-17T08:07:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T16:13:59.000Z (about 1 year ago)
- Last Synced: 2024-05-22T17:28:42.798Z (about 1 year ago)
- Topics: blender, gpu, ray-tracing, rendering
- Language: Python
- Homepage: https://gpuopen.com/radeon-prorender-suite/
- Size: 15.4 MB
- Stars: 473
- Watchers: 34
- Forks: 59
- Open Issues: 78
-
Metadata Files:
- Readme: README-LNX.md
- Changelog: Changelog.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Development environment preparation
1. Ubuntu 22.04.04 LTS
2. Update system (required for update amdgpu linux drivers)
```
apt-get update
apt-get upgrade
```
3. Download [amdgpu drivers for linux](https://www.amd.com/en/support/linux-drivers)
4. Install amdgpu deb package (it setup official repo + required script for futher gpu driver install)
```
apt install ./amdgpu-install_*.deb
```
5. Install amdgpu driver itself
```
amdgpu-install
```
6. Reboot (required for amdgpu driver init)
7. Download [blender 3.1](https://www.blender.org/download)
8. Unpack somewhere
9. Setup env. variable `BLENDER_EXE` and set to blender executable. For example:
```
echo "BLENDER_EXE=/home/feniks/bin/blender-4.1.0-linux-x64/blender" >> ~/.bashrc
```10. Install blender build dependencies
```
sudo apt-get install castxml python3.11 python3.11-dev \
build-essential cmake \
makeself patchelf libpci-dev libdrm-dev opencl-headers \
libopenimageio-dev libfreeimage-dev libembree-dev
```
11. Install python deps
```
python3.11 -m pip install numpy cffi imageio pytest
```
12. Add to PATH required python binaries. For example:
```
echo "PATH=/home/amd/.local/bin:$PATH" >> ~/.bashrc
```# Project build
> [!NOTE]
> Dont forget to fetch project submodules `git submodule update --init -f --recursive`To build project run command
```
./build.sh
```## Create shipment archive
To create shipment archive, please, run script:
```
cd BlenderPkg
./build.sh
```
Shipment package should be in `BuildPkg/.build` directory.To install shipment build, run blender, select `Edit -> Preferences -> Addons -> Install`.
Then activate "RadeonProRender"# Run addon from source
```
export LD_LIBRARY_PATH=/usr/lib64
python3.11 tests/commandline/run_blender.py $BLENDER_EXE tests/commandline/test_rpr.py
// In the middle should be your path to Blender's executable file.
```# Debug with PyCharm in Linux
1. Run pycharm, add project
2. Add blender iterpretator. `Settings -> Python Iterpreter -> Add Iterpreter. Set blender python interpreter.
For example, for blender 4.1 on my system:
```
/home/amd/blender-4.1.0-linux-x.64/4.1/python/bin/python3.11`
```
3. Run once script from project root:
```
./run_blender_with_rpr_Ubuntu.sh ~/blnddbg
```
4. Add Run/Debug configuration in Pycharm.
1. Select Python from blender (see step 2)
2. Select script. Set script path to cmd_tools/run_blender.py. For example:
```
/home/amd/workspace/RadeonProRenderBlenderAddon/cmd_tools/run_blender.py
```
3. In script argument, set path to blender and path to AMDProRender main script:
```
/home/amd/blender-4.1.0-linux-x64/blender /home/amd/workspace/RadeonProRenderBlenderAddon/cmd_tools/test_rpr.py
```
3. In `Working directory` select path from step 3. For example:
```
/home/amd/blnddbg
```
4. In `Environment variables` set:
```
PYTHONUNBUFFERED=1;RPR_BLENDER_DEBUG=1
```