Support Forum       G3D Web Page     
Classes | Public Member Functions | Public Attributes | List of all members
G3D::PathTracer::Options Class Reference

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...
 

Constructor & Destructor Documentation

◆ Options()

G3D::PathTracer::Options::Options ( )
inline

Member Data Documentation

◆ areaLightDirectFraction

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:

  • 1.0 = pure direct illumination (good for small sources and diffuse surfaces)
  • 0.0 = pure path tracing (good for large area lights and glossy surfaces)

◆ maxImportanceSamplingWeight

float G3D::PathTracer::Options::maxImportanceSamplingWeight = 1.5f

Prevent low-probability glossy paths from receiving high weights.

Increase for more accuracy, decrease for less variance.

◆ maxIncidentRadiance

Radiance G3D::PathTracer::Options::maxIncidentRadiance = 300.0f

Prevent very low-probability caustic paths from increasing variance.

Increase for more accuracy, decrease for less variance.

◆ maxScatteringEvents

int G3D::PathTracer::Options::maxScatteringEvents = 5

1 = direct illumination.

Default = 5 in Release mode and 2 in Debug mode.

◆ multithreaded

bool G3D::PathTracer::Options::multithreaded = true

Default = true in Release mode and false in debug mode.

◆ raysPerPixel

int G3D::PathTracer::Options::raysPerPixel = 64

Only used for traceImage.

Default = 64 in Release mode and 1 in Debug mode. Not used by traceBuffer().

◆ samplingMethod

LightSamplingMethod G3D::PathTracer::Options::samplingMethod = LightSamplingMethod::LOW_DISCREPANCY_SOLID_ANGLE

◆ useEnvironmentMapForLastScatteringEvent

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.


documentation generated on Wed Nov 24 2021 08:01:59 using doxygen 1.8.15