eradiate.scenes.integrators.EOVolPathIntegrator#
- class eradiate.scenes.integrators.EOVolPathIntegrator(id='integrator', timeout=None, moment=False, stokes=False, meridian_align=True, max_depth=None, hide_emitters=None, rr_depth=1000, rr_factor=0.97, use_vroom=False, use_ddis=False, use_ddis_surface=True, use_pbs=False, pbs_min_split_threshold=3.0, pbs_max_split_count=50, pbs_crit_rr_threshold=0.33, pbs_min_rr_threshold=0.2, use_nle=False, nle_first_clone_depth=5, nle_max_clone_depth=12, nle_nee_per_clone=11)#
Bases:
MonteCarloIntegratorA thin interface to the EO volumetric path tracer kernel plugin [
eovolpath].This integrator samples paths using random walks starting from the sensor. It supports multiple scattering and accounts for volume interactions. It implements all the variance reduction methods from VROOM Buras and Mayer [2011]: DDIS, prediction-based path splitting (PBS), and the Non-Local Estimator (NLE). The default values are set to the ones suggested in the article to the exception of
pbs_max_split_count, which has been decreased to avoid drastic slowdowns andnle_first_clone_depthto accomodate how depth is calculated in the kernel.It also supports the use of extremum structures and the estimation of transmittance through residual ratio tracking [Novák et al., 2014]. The former can improve performance in heterogeneous atmospheres, and the latter reduces variance in transmittance estimation.
- Parameters:
id (
str, optional, default:"integrator") – Identifier of the current scene element.timeout (
float, optional, default:None) – Maximum amount of time to spend during a kernel render pass in second (excluding scene parsing).moment (
bool, optional, default:False) – IfTrue, calculates the variance of the output film.stokes (
bool, optional, default:False) – IfTrue, calculate and output the polarized components of the Stokes vector. Note that this will only work with a polarized mode and a sensor that measures radiance.meridian_align (
bool, optional, default:True) – IfTrue, align the Stokes vector to the meridian plane. Otherwise, default to aligning to the sensor’s x-axis. This parameter is only relevant in polarized mode, when measuring radiance withstokes=True.max_depth (
int, optional) – Longest path depth in the generated measure data (where -1 corresponds to ∞). A value of 1 will display only visible emitters. 2 computes only direct illumination (no multiple scattering), etc. If unset, the kernel default value (-1) is used.hide_emitters (
bool, optional) – Hide directly visible emitters. If unset, the kernel default value (false) is used.rr_depth (
int) – Minimum path depth after which the implementation starts applying the Russian roulette path termination criterion.rr_factor (
float) – Maximum probability of keeping a path when Russian Roulette is evaluated.use_vroom (
bool, default:False) – Activate all VROOM variance reduction methods (DDIS, PBS, and NLE). IfTrue, overridesuse_ddis,use_pbs, anduse_nle.use_ddis (
bool) – Activate the DDIS variance reduction method. Theddis_thresholdcontrolling the probability of sampling using the emitter direction is set in theeradiate.scenes.atmosphere.Atmosphereinterface.use_ddis_surface (
bool) – Apply DDIS to surfaces whenuse_ddis=True. Uses the sameddis_thresholdas mentioned inuse_ddis.use_pbs (
bool) – Enable prediction-based path splitting (PBS). At each volumetric scattering event, the predicted contribution of the scattered direction is used to decide whether to split the path into multiple independent copies or to apply Russian roulette. Each split copy carries a proportionally reduced weight.pbs_min_split_threshold (
float) – Minimum prediction weight required to trigger a split. Only paths whose predicted weight exceeds this value are split. Must be greater than 1 for splitting to produce more than one copy.pbs_max_split_count (
int) – Maximum number of path copies created at a single splitting event. The actual count ismin(pbs_max_split_count, floor(w_spl)), wherew_splis the split prediction weight.pbs_crit_rr_threshold (
float) – Prediction weight threshold below which Russian roulette is applied to split paths. Split paths whose current prediction weight falls below this value are stochastically terminated to limit the cost of low-weight copies.pbs_min_rr_threshold (
float) – Minimum survival probability for split-path Russian roulette. The survival probability ismax(w_spl, pbs_min_rr_threshold), ensuring the kill probability never exceeds1 - pbs_min_rr_thresholdand that surviving paths are not reweighted above their pre-split weight.use_nle (
bool) – Enable the Non-Local Estimator (NLE) variance reduction method. Each primary ray is traced as a mother path. At regular intervals along the mother’s trajectory, a clone path is forked and traced independently to perform additional next-event estimation. The mother’s own NEE contributions are restricted to avoid double-counting.nle_first_clone_depth (
int) – Scatter depth at which the mother path creates its first clone. Clone creation then recurs everynee_per_clonescatters thereafter.nle_max_clone_depth (
int) – Maximum number of scattering events a clone is allowed to trace before it is terminated. Controls the amount of next-event estimation work performed per clone.nle_nee_per_clone (
int) – Interval, in scattering events, between successive clone creation events along the mother path. A new clone is spawned everynle_nee_per_clonescatters starting fromnle_first_clone_depth.
- Fields:
timeout (
floatorNone) – Maximum amount of time to spend during a kernel render pass in second (excluding scene parsing).moment (
bool) – IfTrue, calculates the variance of the output film.stokes (
bool) – IfTrue, calculate and output the polarized components of the Stokes vector.meridian_align (
bool) – IfTrue, align the Stokes vector to the meridian plane.max_depth (
intorNone) – Longest path depth in the generated measure data (where -1 corresponds to ∞).hide_emitters (
boolorNone) – Hide directly visible emitters.rr_depth (
int) – Minimum path depth after which the implementation starts applying the Russian roulette path termination criterion.rr_factor (
float) – Maximum probability of keeping a path when Russian Roulette is evaluated.use_ddis (
bool) – Activate the DDIS variance reduction method.use_ddis_surface (
bool) – Apply DDIS to surfaces whenuse_ddis=True.use_pbs (
bool) – Enable prediction-based path splitting (PBS).pbs_min_split_threshold (
float) – Minimum prediction weight required to trigger a split.pbs_max_split_count (
int) – Maximum number of path copies created at a single splitting event.pbs_crit_rr_threshold (
float) – Prediction weight threshold below which Russian roulette is applied to split paths.pbs_min_rr_threshold (
float) – Minimum survival probability for split-path Russian roulette.use_nle (
bool) – Enable the Non-Local Estimator (NLE) variance reduction method.nle_first_clone_depth (
int) – Scatter depth at which the mother path creates its first clone.nle_max_clone_depth (
int) – Maximum number of scattering events a clone is allowed to trace before it is terminated.nle_nee_per_clone (
int) – Interval, in scattering events, between successive clone creation events along the mother path.
- traverse(callback)#
Traverse this scene element and collect kernel dictionary template and parameter update map contributions.
- Parameters:
callback (
SceneTraversal) – Callback data structure storing the collected data.
- update()#
Enforce internal state consistency. This method should be called when fields are modified. It is automatically called as a post-init step.
- property extremum_compatible#
- Returns:
bool– Flags whether the integrator can consume extremum structures.
- property objects#
Map of child objects associated with this scene element.
- Returns:
dict– A dictionary mapping object names to a corresponding object to be inserted in the Eradiate scene graph.
- property params#
- Returns:
dict[str,SceneParameter] orNone– A dictionary mapping parameter paths, consisting of dot-separated strings, to a corresponding update protocol.
See also
- property template#
Kernel dictionary template contents associated with this scene element.
- Returns:
dict– A flat dictionary mapping dot-separated strings describing the path of an item in the nested scene dictionary to values. Values may be objects which can be directly used by themitsuba.load_dict()function, orDictParameterinstances which must be rendered.
See also
- property use_vroom#
Trueif all VROOM variance reduction methods (DDIS, PBS, and NLE) are enabled. Setting this property setsuse_ddis,use_pbsanduse_nleto the assigned value.