|
@ -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"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
?>
|
|
|
?>
|