PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Public Attributes | List of all members
PGENLib.PathTracer Class Reference

The algorithm implemented here allows the caller to tune number of rays thrown at each iteration, as well as the maximum depth. It implements Russian roulette to reduce the number of recursive calls.

Pcg Random number generator
NumbOfRays Number of rays to be fired at each iteration
MaxDepth Maximum number of reflections for any ray
RussianRouletteLimit Minimum number of reflections for the Russian Roulette algorith to start
More...

Inheritance diagram for PGENLib.PathTracer:
PGENLib.Renderer

Public Member Functions

 PathTracer (World world, PCG pcg, int numbOfRays=10, int maxDepth=2, int russianRouletteLimit=3, Color backgroundColor=default)
 
override Color Call (Ray ray)
 Virtual method to Estimate the radiance along a ray. Find it overwritten in class OnOffRenderer and FlatRenderer More...
 
virtual Color Call (Ray ray)
 Virtual method to Estimate the radiance along a ray. Find it overwritten in class OnOffRenderer and FlatRenderer More...
 

Public Attributes

PCG Pcg
 
int NumbOfRays
 
int MaxDepth
 
int RussianRouletteLimit
 
- Public Attributes inherited from PGENLib.Renderer
World World
 
Color BackgroundColor
 

Additional Inherited Members

- Protected Member Functions inherited from PGENLib.Renderer
 Renderer (World world, Color backgroundColor=default)
 

Detailed Description

The algorithm implemented here allows the caller to tune number of rays thrown at each iteration, as well as the maximum depth. It implements Russian roulette to reduce the number of recursive calls.

Pcg Random number generator
NumbOfRays Number of rays to be fired at each iteration
MaxDepth Maximum number of reflections for any ray
RussianRouletteLimit Minimum number of reflections for the Russian Roulette algorith to start

Member Function Documentation

◆ Call()

override Color PGENLib.PathTracer.Call ( Ray  ray)
virtual

Virtual method to Estimate the radiance along a ray. Find it overwritten in class OnOffRenderer and FlatRenderer

Parameters
ray
Returns
Exceptions
NotImplementedException

Reimplemented from PGENLib.Renderer.


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