Browse Source

修改了默认的渲染参数

master
yuanjiajia 2 years ago
parent
commit
40700303ea
  1. 6
      examples/startDemo.php
  2. 6
      src/scene/render/PathDepth.php
  3. 2
      src/scene/render/Sobol.php

6
examples/startDemo.php

@ -471,7 +471,6 @@ $path = new render\Path(); // 设置 光线跟
$render .= $path; $render .= $path;
$sampler = new render\Sampler(); // 设置 采样器 配置参数,默认使用 Sobol 类型的自适应采样器 $sampler = new render\Sampler(); // 设置 采样器 配置参数,默认使用 Sobol 类型的自适应采样器
$sampler->sampling->superSampling = render\Sobol::POW_TWO_SIX; // 设置采样基数的倍数
$render .= $sampler; $render .= $sampler;
$lightStrategy = new render\LightStrategy(); // 设置 灯光策略 类型,默认使用 LOG_POWER 类型 $lightStrategy = new render\LightStrategy(); // 设置 灯光策略 类型,默认使用 LOG_POWER 类型
@ -481,7 +480,7 @@ $filesaver = new render\FileSaver(); // 设置 文件储
$render .= $filesaver; $render .= $filesaver;
$batch = new render\Batch(); // 设置 渲染终止 参数, $batch = new render\Batch(); // 设置 渲染终止 参数,
$batch->haltspp = 200; // 设置 每像素 采样达 800 则终止渲染
$batch->haltspp = 1000; // 设置 每像素 采样达 800 则终止渲染
// $batch->halttime = 2000; // 设置 渲染 超时参数, // $batch->halttime = 2000; // 设置 渲染 超时参数,
$render .= $batch; $render .= $batch;
@ -539,5 +538,4 @@ 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"); if( $returnVar == 127 ) throw new \Exception("Please install the luxcorerender bin file in the system directory correctly,Or add to the system environment variable");
?>
?>

6
src/scene/render/PathDepth.php

@ -14,17 +14,17 @@ class PathDepth extends BaseCfg
/** /**
* 限制 漫反射光线 最大跟踪深度为(取值:大于或等于1的整数) * 限制 漫反射光线 最大跟踪深度为(取值:大于或等于1的整数)
*/ */
public $diffuse = 12;
public $diffuse = 8;
/** /**
* 限制 光泽反射光线 最大跟踪深度为(取值:大于或等于1的整数) * 限制 光泽反射光线 最大跟踪深度为(取值:大于或等于1的整数)
*/ */
public $glossy = 12;
public $glossy = 8;
/** /**
* 限制 高光反射光线 最大跟踪深度为(取值:大于或等于1的整数) * 限制 高光反射光线 最大跟踪深度为(取值:大于或等于1的整数)
*/ */
public $specular = 12;
public $specular = 8;
} }
?> ?>

2
src/scene/render/Sobol.php

@ -25,7 +25,7 @@ class Sobol extends BaseCfg
/** /**
* @var integer TODO:初步判断为每像素采样的样本数其数 * @var integer TODO:初步判断为每像素采样的样本数其数
*/ */
public $overlapping = self::PROGRESSIVE;
public $overlapping = self::CACHE_FRIENDLY;
/** /**
* @var integer 这是 $overlapping”参数的倍数,所得到的乘积就是单个像素的最大跟踪光线的数量,当渲染引擎为PATHCPU * @var integer 这是 $overlapping”参数的倍数,所得到的乘积就是单个像素的最大跟踪光线的数量,当渲染引擎为PATHCPU

Loading…
Cancel
Save