BRL-CAD
Loading...
Searching...
No Matches
photonmap.h File Reference

Declarations related to Photon Mapping. More...

#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "vmath.h"
#include "bn.h"
#include "rt/db4.h"
#include "nmg.h"
#include "raytrace.h"
#include "optical.h"
#include "optical/plastic.h"
#include "optical/light.h"
Include dependency graph for photonmap.h:

Go to the source code of this file.

Data Structures

struct  Photon
 
struct  PSN
 
struct  PhotonSearch
 
struct  NearestPhotons
 
struct  PNode
 
struct  PhotonMap
 
struct  IrradNode
 
struct  IrradCache
 

Macros

#define PM_MAPS   4
 
#define PM_GLOBAL   0
 
#define PM_CAUSTIC   1
 
#define PM_SHADOW   2 /* Current not used */
 
#define PM_IMPORTANCE   3
 

Functions

void BuildPhotonMap (struct application *ap, point_t eye_pos, int cpus, int width, int height, int Hypersample, int GlobalPhotons, double CausticsPercent, int Rays, double AngularTolerance, int RandomSeed, int ImportanceMapping, int IrradianceHypersampling, int VisualizeIrradiance, double LightIntensity, char pmfile[255])
 
void IrradianceEstimate (struct application *ap, vect_t irrad, point_t pos, vect_t normal)
 

Variables

int PM_Activated
 Photon Mapping Activated, 0=off, 1=on.
 
int PM_Visualize
 Photon Mapping Visualization of Irradiance Cache.
 

Detailed Description

Declarations related to Photon Mapping.

P H O T O N M A P. H

Definition in file photonmap.h.