2#ifndef _TINYPBRT_INTEGRATOR_H_
3#define _TINYPBRT_INTEGRATOR_H_
tpbrt_integrator_light_sampler_t
Integrator light sampler type.
Definition integrator.h:49
tpbrt_integrator_type_t
Integrator type.
Definition integrator.h:20
@ TPBRT_INTEGRATOR_LIGHT_SAMPLER_BVH
BVH over the lights.
Definition integrator.h:51
@ TPBRT_INTEGRATOR_LIGHT_SAMPLER_UNIFORM
Uniform light sampling.
Definition integrator.h:53
@ TPBRT_INTEGRATOR_LIGHT_SAMPLER_MAX_NUM
Count of available integrator light samplers.
Definition integrator.h:57
@ TPBRT_INTEGRATOR_LIGHT_SAMPLER_POWER
Sampling lights according to their power.
Definition integrator.h:55
@ TPBRT_INTEGRATOR_TYPE_SIMPLE_VOL_PATH
Volumetric path tracing with very basic sampling algorithms.
Definition integrator.h:36
@ TPBRT_INTEGRATOR_TYPE_RANDOM_WALK
Rendering using a simple random walk without any explicit light sampling.
Definition integrator.h:32
@ TPBRT_INTEGRATOR_TYPE_VOL_PATH
Volumetric path tracing.
Definition integrator.h:40
@ TPBRT_INTEGRATOR_TYPE_PATH
Path tracing.
Definition integrator.h:30
@ TPBRT_INTEGRATOR_TYPE_AMBIENT_OCCLUSION
Ambient occlusion (accessibility over the hemisphere).
Definition integrator.h:22
@ TPBRT_INTEGRATOR_TYPE_MLT
Metropolis light transport using bidirectional path tracing.
Definition integrator.h:28
@ TPBRT_INTEGRATOR_TYPE_BDPT
Bidirectional path tracing.
Definition integrator.h:24
@ TPBRT_INTEGRATOR_TYPE_SIMPLE_PATH
Path tracing with very basic sampling algorithms.
Definition integrator.h:34
@ TPBRT_INTEGRATOR_TYPE_LIGHT_PATH
Path tracing starting from the light sources.
Definition integrator.h:26
@ TPBRT_INTEGRATOR_TYPE_SPPM
Stochastic progressive photon mapping.
Definition integrator.h:38
@ TPBRT_INTEGRATOR_TYPE_MAX_NUM
Count of available integrator types.
Definition integrator.h:42
float tpbrt_float_t
Float type.
Definition fwd.h:83
int32_t tpbrt_int_t
Int type.
Definition fwd.h:73
uint32_t tpbrt_uint_t
Unsigned int type.
Definition fwd.h:78
uint8_t tpbrt_bool_t
Bool type.
Definition fwd.h:68
Ambient Occlusion integrator parameters.
Definition integrator.h:64
tpbrt_bool_t cos_sample
Controls whether uniform hemisphere sampling or cosine-weighted sampling should be used for ambient o...
Definition integrator.h:68
tpbrt_float_t max_distance
Distance after which occlusion should be ignored.
Definition integrator.h:66
BDPT integrator parameters.
Definition integrator.h:75
tpbrt_bool_t visualize_strategies
If true, an image is saved for each (s,t) bidirectional path generation strategy used by the integrat...
Definition integrator.h:81
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:77
tpbrt_bool_t regularize
Controls whether "path regularization" is performed. (i.e., a roughening of specular vertices after a...
Definition integrator.h:79
tpbrt_bool_t visualize_weights
If true, an image is saved with the multiple importance sampling weights for each (s,...
Definition integrator.h:83
Light path integrator parameters.
Definition integrator.h:90
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:92
MLT integrator parameters.
Definition integrator.h:99
tpbrt_uint_t bootstrap_samples
Number of samples to take during the "bootstrap" phase; some of these samples are used for initial li...
Definition integrator.h:103
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:101
tpbrt_uint_t chains
Number of unique Markov chains chains to follow with the Metropolis algorithm. (Each chain starts wit...
Definition integrator.h:105
tpbrt_float_t large_step_probability
Probability of discarding the current path and generating a new random path (versus applying a small ...
Definition integrator.h:109
tpbrt_float_t sigma
Standard deviation of the perturbation applied to random samples in [0,1] used for small path mutatio...
Definition integrator.h:111
tpbrt_uint_t mutations_per_pixel
Number of path mutations to apply per pixel in the image. (Note that each pixel will generally receiv...
Definition integrator.h:107
tpbrt_bool_t regularize
Controls whether "path regularization" is performed. (i.e., a roughening of specular vertices after a...
Definition integrator.h:113
Path integrator parameters.
Definition integrator.h:120
tpbrt_integrator_light_sampler_t light_sampler
Light sampling algorithm to be used.
Definition integrator.h:124
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:122
tpbrt_bool_t regularize
Controls whether "path regularization" is performed. (i.e., a roughening of specular vertices after a...
Definition integrator.h:126
Random walk integrator parameters.
Definition integrator.h:133
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:135
Simple path integrator parameters.
Definition integrator.h:142
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:144
tpbrt_bool_t sample_bsdf
Use the BSDFs' importance sampling routines to sample ray directions. (Uniform spherical sampling is ...
Definition integrator.h:146
tpbrt_bool_t sample_lights
Use the lights' importance sampling routines for direct lighting calculations. (No light sampling is ...
Definition integrator.h:148
Simple VOL path integrator parameters.
Definition integrator.h:155
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:157
SPPM integrator parameters.
Definition integrator.h:164
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:166
tpbrt_int_t photons_per_iteration
Number of photons to shoot from light sources in each iteration. With the default value,...
Definition integrator.h:168
tpbrt_int_t seed
Seed for random number generator used to randomize sample generation for photon rays.
Definition integrator.h:172
tpbrt_float_t radius
Initial photon search radius. (This value will be reduced as photons are accumulated at each pixel....
Definition integrator.h:170
PBRT integrator representation.
Definition integrator.h:192
tpbrt_integrator_ambient_occlusion_params_t ambient_occlusion
Ambient occlusion integrator parameters.
Definition integrator.h:196
tpbrt_integrator_path_params_t path
Path integrator parameters.
Definition integrator.h:204
tpbrt_integrator_sppm_params_t sppm
SPPM integrator parameters.
Definition integrator.h:212
tpbrt_integrator_light_path_params_t light_path
Light path integrator parameters.
Definition integrator.h:200
tpbrt_integrator_type_t type
Value type.
Definition integrator.h:218
tpbrt_integrator_random_walk_params_t random_walk
Random walk integrator parameters.
Definition integrator.h:206
tpbrt_integrator_simple_path_params_t simple_path
Simple path integrator parameters.
Definition integrator.h:208
tpbrt_integrator_mlt_params_t mlt
MLT integrator parameters.
Definition integrator.h:202
tpbrt_integrator_vol_path_params_t vol_path
VOL path integrator parameters.
Definition integrator.h:214
tpbrt_integrator_simple_vol_path_params_t simple_vol_path
Simple vol path integrator parameters.
Definition integrator.h:210
tpbrt_integrator_bdpt_params_t bdpt
BDPT integrator parameters.
Definition integrator.h:198
union tpbrt_integrator_t::@6 as
Value dependent on type value.
VOL path integrator parameters.
Definition integrator.h:179
tpbrt_bool_t regularize
Controls whether "path regularization" is performed. (i.e., a roughening of specular vertices after a...
Definition integrator.h:185
tpbrt_uint_t max_depth
Maximum length of a light-carrying path sampled by the integrator.
Definition integrator.h:181
tpbrt_integrator_light_sampler_t light_sampler
Light sampling algorithm to be used.
Definition integrator.h:183