Browse Source

configBatch.php、Batch.php、HaltThresHold.php三个文件有修改注释

master
yuanjiajia 2 years ago
parent
commit
8babf39e10
  1. 2
      examples/configBatch.php
  2. 11
      src/scene/render/Batch.php
  3. 1
      src/scene/render/HaltThresHold.php

2
examples/configBatch.php

@ -11,7 +11,7 @@ include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
/** /**
* 设置终止渲染参数 * 设置终止渲染参数
*/ */
$batch = new render\Batch(); //实例一个Batch类对象,当前默认的采样器类型为 Sobol
$batch = new render\Batch(); //实例一个Batch类对象
$batch->halttime = 600; //设置渲染时间超时600秒(此参数优先级最高,如果渲染时间超时,则立即终止渲染,而不管其他条件是否已经设置或已经满足) $batch->halttime = 600; //设置渲染时间超时600秒(此参数优先级最高,如果渲染时间超时,则立即终止渲染,而不管其他条件是否已经设置或已经满足)

11
src/scene/render/Batch.php

@ -2,7 +2,6 @@
namespace Blobt\Luxcore\scene\render; namespace Blobt\Luxcore\scene\render;
use Blobt\Luxcore\scene\BaseCfg; use Blobt\Luxcore\scene\BaseCfg;
use Blobt\Luxcore\core\Base;
class Batch extends BaseCfg class Batch extends BaseCfg
{ {
@ -11,21 +10,25 @@ class Batch extends BaseCfg
* @var string 每像素光线跟踪平均采样数 每像素光线跟踪自适应采样数,取值:一组大于等于0的分别表示 每像素光线跟踪平均采样数 * @var string 每像素光线跟踪平均采样数 每像素光线跟踪自适应采样数,取值:一组大于等于0的分别表示 每像素光线跟踪平均采样数
* 每像素光线跟踪自适应采样数 整数值字符串,0表示不启用这个参数,大于0表示启这个参数,其中,必须在 光线跟踪 参数中启 * 每像素光线跟踪自适应采样数 整数值字符串,0表示不启用这个参数,大于0表示启这个参数,其中,必须在 光线跟踪 参数中启
* 光线跟踪自适应采样数量 时, 每像素光线跟踪自适应采样数量 参数才可以设置大于零的整数。 * 光线跟踪自适应采样数量 时, 每像素光线跟踪自适应采样数量 参数才可以设置大于零的整数。
* 1、不启用噪波阈值状态下,如果渲染图像已满足采样条件,则触发终止渲染。
* 2、启用噪波阈值状态下,如果渲染图像已满足采样条件,且图像噪波低于噪波阈值($stoprenderingEnable参数为
* false状态时),触发终止渲染。
*/ */
public $haltspp = "500 0"; public $haltspp = "500 0";
/** /**
* @var integer 渲染超时的设置,单位秒,(取值:大于等于0的整数)
* @var integer 渲染超时的设置,单位秒。此参数优先级最高如果渲染时间超时,则立即终止渲染,而不管其他条件是否已经设置或已经满足(取值:大于等于0的整数)
*/ */
public $halttime = 0; public $halttime = 0;
/** /**
* @var float 噪波阈值,(取值:浮点型色值),如果需要使噪波阈值,这里需要设一个参数,默认为0.02
* @var float 噪波阈值,(取值:浮点型色值),如果需要使噪波阈值,这里需要设一个参数,默认为0.02
* 默认情况下,当图像噪波低于这个阈值时,则触发终止渲染,而不管 采样数 是否已设置或是否已满足。
*/ */
public $haltthreshold; public $haltthreshold;
/** /**
* @var object 存储一个 haltThresHold类 对象
* @var object 存储一个 haltThresHold类 对象,配置在使用噪波阈值作为渲染终止条件时的参数。
*/ */
public $haltthresholdcfg; public $haltthresholdcfg;

1
src/scene/render/HaltThresHold.php

@ -25,6 +25,7 @@ class HaltThresHold extends BaseCfg
/** /**
* @var bool 当渲染器状态达到此类参数设置的值,是否停止渲染,(默认取值:true) * @var bool 当渲染器状态达到此类参数设置的值,是否停止渲染,(默认取值:true)
* 是否当图像噪波低于阈值时,触发终止渲染,而不管 采样数 是否已设置或是否已满足。
*/ */
public $stoprenderingEnable = true; public $stoprenderingEnable = true;

Loading…
Cancel
Save