#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) |
PhotonIntegrator * | CreatePhotonMapSurfaceIntegrator (const ParamSet ¶ms) |
PhotonIntegrator* CreatePhotonMapSurfaceIntegrator | ( | const ParamSet & | params | ) |
Definition at line 776 of file photonmap.cpp.
References ParamSet::FindOneBool(), ParamSet::FindOneFloat(), ParamSet::FindOneInt(), PbrtOptions, and Options::quickRender.
Referenced by MakeSurfaceIntegrator().
Spectrum EPhoton | ( | KdTree< Photon > * | map, | |
int | count, | |||
int | nLookup, | |||
ClosePhoton * | lookupBuf, | |||
float | maxDist2, | |||
const Point & | p, | |||
const Normal & | n | |||
) | [static] |
Definition at line 255 of file photonmap.cpp.
References Photon::alpha, Assert, Dot(), KdTree< NodeData >::Lookup(), M_PI, PhotonProcess::nFound, ClosePhoton::photon, and PhotonProcess::photons.
Referenced by ComputeRadianceTask::Run().
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] |
Definition at line 206 of file photonmap.cpp.
References Photon::alpha, BSDF_ALL_REFLECTION, BSDF_ALL_TRANSMISSION, BSDF_DIFFUSE, BSDF_GLOSSY, BSDF_REFLECTION, BSDF_TRANSMISSION, Intersection::dg, BSDF::dgShading, Dot(), BSDF::f(), Faceforward(), INV_PI, kernel(), KdTree< NodeData >::Lookup(), PhotonProcess::nFound, PhotonProcess::nLookup, DifferentialGeometry::nn, BSDF::NumComponents(), DifferentialGeometry::p, ClosePhoton::photon, PhotonProcess::photons, BSDF::rho(), and Photon::wi.
Referenced by PhotonIntegrator::Li().
bool unsuccessful | ( | uint32_t | needed, | |
uint32_t | found, | |||
uint32_t | shot | |||
) | [inline] |
Definition at line 174 of file photonmap.cpp.
Referenced by PhotonShootingTask::Run().