photonmap.cpp File Reference

#include "stdafx.h"
#include "integrators/photonmap.h"
#include "scene.h"
#include "montecarlo.h"
#include "sampler.h"
#include "progressreporter.h"
#include "intersection.h"
#include "paramset.h"
#include "camera.h"

Go to the source code of this file.

Classes

struct  Photon
class  PhotonShootingTask
struct  RadiancePhoton
class  ComputeRadianceTask
struct  PhotonProcess
struct  ClosePhoton
struct  RadiancePhotonProcess

Functions

float kernel (const Photon *photon, const Point &p, float maxDist2)
static Spectrum LPhoton (KdTree< Photon > *map, int nPaths, int nLookup, ClosePhoton *lookupBuf, BSDF *bsdf, RNG &rng, const Intersection &isect, const Vector &w, float maxDistSquared)
static Spectrum EPhoton (KdTree< Photon > *map, int count, int nLookup, ClosePhoton *lookupBuf, float maxDist2, const Point &p, const Normal &n)
bool unsuccessful (uint32_t needed, uint32_t found, uint32_t shot)
PhotonIntegratorCreatePhotonMapSurfaceIntegrator (const ParamSet &params)

Function Documentation

PhotonIntegrator* CreatePhotonMapSurfaceIntegrator ( const ParamSet params  ) 
Spectrum EPhoton ( KdTree< Photon > *  map,
int  count,
int  nLookup,
ClosePhoton lookupBuf,
float  maxDist2,
const Point p,
const Normal n 
) [static]
float kernel ( const Photon photon,
const Point p,
float  maxDist2 
) [inline]

Definition at line 199 of file photonmap.cpp.

References DistanceSquared(), INV_PI, and Photon::p.

Referenced by LPhoton().

Spectrum LPhoton ( KdTree< Photon > *  map,
int  nPaths,
int  nLookup,
ClosePhoton lookupBuf,
BSDF bsdf,
RNG rng,
const Intersection isect,
const Vector w,
float  maxDistSquared 
) [static]
bool unsuccessful ( uint32_t  needed,
uint32_t  found,
uint32_t  shot 
) [inline]

Definition at line 174 of file photonmap.cpp.

Referenced by PhotonShootingTask::Run().

Generated on Sat Aug 28 20:00:12 2010 for pbrt by  doxygen 1.6.3