|
|
@ -481,7 +481,7 @@ $filesaver = new render\FileSaver(); // 设置 文件储 |
|
|
|
$render .= $filesaver; |
|
|
|
|
|
|
|
$batch = new render\Batch(); // 设置 渲染终止 参数,
|
|
|
|
$batch->haltspp = 800; // 设置 每像素 采样达 800 则终止渲染
|
|
|
|
$batch->haltspp = 200; // 设置 每像素 采样达 800 则终止渲染
|
|
|
|
// $batch->halttime = 2000; // 设置 渲染 超时参数,
|
|
|
|
$render .= $batch; |
|
|
|
|
|
|
@ -532,8 +532,8 @@ fclose($handle); |
|
|
|
|
|
|
|
|
|
|
|
// 六、启动渲染器
|
|
|
|
$cmd = "gnome-terminal -t \"LuxCoreRender\" -e \"luxcoreconsole -o /home/yuanjiajia/Desktop/blender/blender_test/scene/render.cfg -f /home/yuanjiajia/Desktop/blender/blender_test/scene/scene.scn\""; |
|
|
|
shell_exec($cmd); |
|
|
|
$cmd = "luxcoreconsole -o /home/yuanjiajia/Desktop/blender/blender_test/scene/render.cfg -f /home/yuanjiajia/Desktop/blender/blender_test/scene/scene.scn 1>../render.log 2>&1"; |
|
|
|
exec($cmd); |
|
|
|
|
|
|
|
|
|
|
|
?>
|