tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt_options_t Struct Reference

PBRT options representation. More...

#include <tinypbrt/detail/options.h>

Data Fields

tpbrt_string_t mse_reference_image
 Specifies the filename of an image to use when computing mean squared error versus the number of pixel samples taken (see "msereferenceout").
 
tpbrt_string_t mse_reference_out
 Filename for per-sample mean squared error results. When both this and "msereferenceimage" are specified, the mean squared error of the current image and the reference image is computed after each sample is taken and the results are stored in text format in this file.
 
tpbrt_int_t seed
 Seed to use for pseudo-random number generation during rendering. Rendering a scene with different seed values will give independent results, which can be useful for statistical analysis.
 
tpbrt_float_t displacement_edge_scale
 Global scale factor applied to triangle edge lengths before evaluating the edge length test for refinement when applying displacement mapping. Increasing this value will generally reduce memory use and startup time when rendering scenes with displacement mapping.
 
tpbrt_coord_system_type_t render_coord_sys: 3
 Specifies the coordinate system to use for rendering computation.
 
tpbrt_bool_t disable_pixel_jitter: 1
 Forces all pixel samples to be through the center of the pixel area. Enabling this can be useful when computing reference images and then computing error with respect to them in that it eliminates differences due to geometric sampling that may not be of interest.
 
tpbrt_bool_t disable_texture_filtering: 1
 Forces point sampling at the finest MIP level for all texture lookups. (Rarely useful.)
 
tpbrt_bool_t disable_wave_length_jitter: 1
 Forces all samples within each pixel to sample the same wavelengths. RGB images will generally have objectionable color error but this can also be useful when computing error with respect to reference images when error due to random wavelength sampling shouldn't be included.
 
tpbrt_bool_t force_diffuse: 1
 Force all materials to be diffuse. (Note: not currently supported with the –wavefront and –gpu integrators.)
 
tpbrt_bool_t pixel_stats: 1
 Write out images after rendering that encode per-pixel statistics including time spent rendering each pixel and any other per-pixel statistics added using STAT_PIXEL_COUNTER or STAT_PIXEL_RATIO in the pbrt source code.
 
tpbrt_bool_t wavefront: 1
 Enables the "wavefront" integrator (i.e., the integrator used for GPU rendering, but running on the CPU).
 

Detailed Description

PBRT options representation.

Field Documentation

◆ mse_reference_image

tpbrt_string_t tpbrt_options_t::mse_reference_image

Specifies the filename of an image to use when computing mean squared error versus the number of pixel samples taken (see "msereferenceout").

◆ mse_reference_out

tpbrt_string_t tpbrt_options_t::mse_reference_out

Filename for per-sample mean squared error results. When both this and "msereferenceimage" are specified, the mean squared error of the current image and the reference image is computed after each sample is taken and the results are stored in text format in this file.

◆ seed

tpbrt_int_t tpbrt_options_t::seed

Seed to use for pseudo-random number generation during rendering. Rendering a scene with different seed values will give independent results, which can be useful for statistical analysis.

◆ displacement_edge_scale

tpbrt_float_t tpbrt_options_t::displacement_edge_scale

Global scale factor applied to triangle edge lengths before evaluating the edge length test for refinement when applying displacement mapping. Increasing this value will generally reduce memory use and startup time when rendering scenes with displacement mapping.

◆ render_coord_sys

tpbrt_coord_system_type_t tpbrt_options_t::render_coord_sys

Specifies the coordinate system to use for rendering computation.

◆ disable_pixel_jitter

tpbrt_bool_t tpbrt_options_t::disable_pixel_jitter

Forces all pixel samples to be through the center of the pixel area. Enabling this can be useful when computing reference images and then computing error with respect to them in that it eliminates differences due to geometric sampling that may not be of interest.

◆ disable_texture_filtering

tpbrt_bool_t tpbrt_options_t::disable_texture_filtering

Forces point sampling at the finest MIP level for all texture lookups. (Rarely useful.)

◆ disable_wave_length_jitter

tpbrt_bool_t tpbrt_options_t::disable_wave_length_jitter

Forces all samples within each pixel to sample the same wavelengths. RGB images will generally have objectionable color error but this can also be useful when computing error with respect to reference images when error due to random wavelength sampling shouldn't be included.

◆ force_diffuse

tpbrt_bool_t tpbrt_options_t::force_diffuse

Force all materials to be diffuse. (Note: not currently supported with the –wavefront and –gpu integrators.)

◆ pixel_stats

tpbrt_bool_t tpbrt_options_t::pixel_stats

Write out images after rendering that encode per-pixel statistics including time spent rendering each pixel and any other per-pixel statistics added using STAT_PIXEL_COUNTER or STAT_PIXEL_RATIO in the pbrt source code.

◆ wavefront

tpbrt_bool_t tpbrt_options_t::wavefront

Enables the "wavefront" integrator (i.e., the integrator used for GPU rendering, but running on the CPU).


The documentation for this struct was generated from the following file: