From 76261fe9e74d4b15925682f22e0493409138cd42 Mon Sep 17 00:00:00 2001 From: yuanjiajia <1139393632@qq.com> Date: Tue, 6 Jun 2023 15:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=B5=8B=E5=BC=8F=20?= =?UTF-8?q?=E6=A1=88=E4=BE=8B=20=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/renderTest.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/renderTest.php b/examples/renderTest.php index 9213106..90c3037 100644 --- a/examples/renderTest.php +++ b/examples/renderTest.php @@ -309,19 +309,19 @@ fclose($handle); -// // 六、启动渲染器 -// $cfgPath = $sceneTemplatePath . "/render.cfg"; -// $scenePath = $sceneTemplatePath . "/scene.scn"; -// $logPath = $sceneTemplatePath . "/render.log"; - -// $cmd = "luxcoreconsole -o " . $cfgPath . " -f " . $scenePath . " 1>" . $logPath . " 2>&1"; -// echo "\n".$cmd."\n"; -// $output; -// $returnVar; -// exec($cmd,$output,$returnVar); - -// if( $returnVar == 127 ){ -// throw new \Exception("Please install the luxcorerender bin file in the system directory correctly,Or add to the system environment variable"); -// } +// 六、启动渲染器 +$cfgPath = $sceneTemplatePath . "/render.cfg"; +$scenePath = $sceneTemplatePath . "/scene.scn"; +$logPath = $sceneTemplatePath . "/render.log"; + +$cmd = "luxcoreconsole -o " . $cfgPath . " -f " . $scenePath . " 1>" . $logPath . " 2>&1"; +echo "\n".$cmd."\n"; +$output; +$returnVar; +exec($cmd,$output,$returnVar); + +if( $returnVar == 127 ){ + throw new \Exception("Please install the luxcorerender bin file in the system directory correctly,Or add to the system environment variable"); +} ?>