|
|
@ -18,6 +18,7 @@ use Blobt\Luxcore\scene\render\effect\Synthesis; |
|
|
|
use Blobt\Luxcore\scene\render\effect\ToneMapLinear; |
|
|
|
use Blobt\Luxcore\scene\render\FileSaver; |
|
|
|
use Blobt\Luxcore\scene\render\Film; |
|
|
|
use Blobt\Luxcore\scene\render\Filter; |
|
|
|
use Blobt\Luxcore\scene\render\Image; |
|
|
|
use Blobt\Luxcore\scene\render\LightStrategy; |
|
|
|
use Blobt\Luxcore\scene\render\Native; |
|
|
@ -295,7 +296,7 @@ $filesaver = new FileSaver(); |
|
|
|
$render .= $filesaver; |
|
|
|
|
|
|
|
$batch = new Batch(); |
|
|
|
$batch->haltspp = 200; |
|
|
|
$batch->haltspp = 2000; |
|
|
|
// $batch->halttime = 2000;
|
|
|
|
$render .= $batch; |
|
|
|
|
|
|
@ -335,6 +336,10 @@ $render .= $sceneCfg; |
|
|
|
// 图像输出设置
|
|
|
|
$imageOutPath = $sceneTemplatePath.'/imageOut'; |
|
|
|
$film = new Film(); |
|
|
|
$filter = new Filter(); |
|
|
|
$filter->type = Filter::TYPE_GAUSSIAN; |
|
|
|
$filter->gaussianAlpha = 2.0; |
|
|
|
$film->filter = $filter; |
|
|
|
$film->width = 1024; |
|
|
|
$film->heigth = 1024; |
|
|
|
|
|
|
@ -346,7 +351,7 @@ $film->addImage(new Image(['type' => Image::TYPE_OBJECT_ID]), $imageOutPath); |
|
|
|
$film->addImage(new Image(['type' => Image::TYPE_RGBA]), $imageOutPath); |
|
|
|
|
|
|
|
$img = new Image(); |
|
|
|
$img->effect[] = new NoiseReducerOIDN(); |
|
|
|
// $img->effect[] = new NoiseReducerOIDN();
|
|
|
|
$img->effect[] = new Pretreatment(); |
|
|
|
$img->effect[] = new ToneMapLinear(); |
|
|
|
$img->effect[] = new Synthesis(); |
|
|
|