Support Forum G3D Web Page |
Classes | |
class | LightSamplingMethod |
Public Member Functions | |
Options () | |
Public Attributes | |
float | areaLightDirectFraction = 0.7f |
Huch energy should be sampled via direct illumination/shadow rays ("Next event estimation") vs. More... | |
float | maxImportanceSamplingWeight = 1.5f |
Prevent low-probability glossy paths from receiving high weights. More... | |
Radiance | maxIncidentRadiance = 300.0f |
Prevent very low-probability caustic paths from increasing variance. More... | |
int | maxScatteringEvents = 5 |
1 = direct illumination. More... | |
bool | multithreaded = true |
Default = true in Release mode and false in debug mode. More... | |
int | raysPerPixel = 64 |
Only used for traceImage. More... | |
LightSamplingMethod | samplingMethod = LightSamplingMethod::LOW_DISCREPANCY_SOLID_ANGLE |
bool | useEnvironmentMapForLastScatteringEvent = false |
If true, make the last scattering event a direct lookup against the Scene's environment map instead of an actual trace. More... | |
|
inline |
float G3D::PathTracer::Options::areaLightDirectFraction = 0.7f |
Huch energy should be sampled via direct illumination/shadow rays ("Next event estimation") vs.
random indirect rays to emissive surfaces?
Extremes:
float G3D::PathTracer::Options::maxImportanceSamplingWeight = 1.5f |
Prevent low-probability glossy paths from receiving high weights.
Increase for more accuracy, decrease for less variance.
Radiance G3D::PathTracer::Options::maxIncidentRadiance = 300.0f |
Prevent very low-probability caustic paths from increasing variance.
Increase for more accuracy, decrease for less variance.
int G3D::PathTracer::Options::maxScatteringEvents = 5 |
1 = direct illumination.
Default = 5 in Release mode and 2 in Debug mode.
bool G3D::PathTracer::Options::multithreaded = true |
Default = true in Release mode and false in debug mode.
int G3D::PathTracer::Options::raysPerPixel = 64 |
Only used for traceImage.
Default = 64 in Release mode and 1 in Debug mode. Not used by traceBuffer().
LightSamplingMethod G3D::PathTracer::Options::samplingMethod = LightSamplingMethod::LOW_DISCREPANCY_SOLID_ANGLE |
bool G3D::PathTracer::Options::useEnvironmentMapForLastScatteringEvent = false |
If true, make the last scattering event a direct lookup against the Scene's environment map instead of an actual trace.
Path tracing with a fixed maximum number of scattering events is biased to produce a value that is too dark (because it always misses some light). useEnvironmentMapForLastScatteringEvent = true can reduce this bias, leading to faster convergence if the environment map is accurate.
Default = false.