Inevitable

文字所表现出来的美丽、恐惧。。还有率真之类的东西,我觉得在其他事物中还是很难寻得的。

0%

自建 Blender Render Farm

暂时没打算买新显卡,那渲染慢怎么办?云渲染!

为什么要自建云渲染

由于本地算力不够,或者单纯想要加快渲染速度,云渲染都是首选。一般的云渲染是使用现成的渲染农场,但是它价格偏高。如果可以使用多个 VPS 进行渲染,成本会比直接使用渲染农场低很多,除了 VPS 比较便宜,很多 VPS 供应商对新账号都会提供代金券。如果我们使用新账号进行云渲染,成本可以进一步被降低。

配置渲染节点

我们使用 CrowdRender 来管理渲染节点。本地的安装和使用直接看官网教程。我着重解释一下如何配置 VPS 。

首先我们需要安装最新版本的 Blender。

1
2
3
4
5
6
7
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install wget -y
sudo apt-get install python3-pip -y
sudo snap install blender --classic
echo 'export PATH=/snap/bin:$PATH'> ~/.bashrc
source ~/.bashrc
我们需要将 Crowdrender 插件上传到 VPS 上。我们可以使用 Winscp 进行上传。上传 ZIP 文件即可,不需要解压。

假设我们将 Crowdrender 上传到了/root/cr.zip

接下来便是开启插件。

1
2
3
4
5
6
blender -b --python-console

import bpy
bpy.ops.preferences.addon_install(filepath='/root/cr.zip')
bpy.ops.preferences.addon_enable(module='crowdrender')
bpy.ops.wm.save_userpref()
或者将这一块代码放入enableaddon.py,并用 Blender 执行。
1
2
3
4
import bpy
bpy.ops.preferences.addon_install(filepath='/root/cr.zip')
bpy.ops.preferences.addon_enable(module='crowdrender')
bpy.ops.wm.save_userpref()
然后用 blender 执行刚刚创建的脚本。
1
blender -b -P enableaddon.py
接下来便是启动渲染服务。
1
blender -b -P ~/.config/blender/2.83/scripts/addons/crowdrender/src/py_3_7/serv_int_start.py -- -t "server_int_proc"
# 局限 在完成渲染节点的设置后,我们只需要将节点的 IP 地址输入本地的插件中进行连接和同步即可。这个插件的连接是有点慢的。点了铁链图表要过了很久才会弹出选框。

目前已知的局限性为流体的渲染有点困难,除非你将所有的缓存和烘焙数据同步上去。

欢迎关注我的其它发布渠道