1 |
|
/* RCSid $Id$ */ |
2 |
+ |
|
3 |
|
/* |
4 |
< |
================================================================== |
5 |
< |
Parameters for photon map generation; used by MKPMAP |
6 |
< |
For inclusion in mkpmap.c |
4 |
> |
====================================================================== |
5 |
> |
Parameters for photon map generation and rendering; used by mkpmap |
6 |
> |
and rpict/rvu/rtrace. |
7 |
|
|
8 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com} |
9 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
10 |
|
(c) Lucerne University of Applied Sciences and Arts, |
11 |
< |
supported by the Swiss National Science Foundation (SNSF, #147053) |
12 |
< |
================================================================== |
13 |
< |
|
11 |
> |
supported by the Swiss National Science Foundation (SNSF, #147053) |
12 |
> |
====================================================================== |
13 |
> |
|
14 |
> |
$Id$ |
15 |
|
*/ |
16 |
|
|
17 |
|
|
27 |
|
unsigned minGather, maxGather; /* Num photons to gather */ |
28 |
|
unsigned long distribTarget; /* Num photons to store */ |
29 |
|
} PhotonMapParams; |
30 |
+ |
|
31 |
+ |
/* Bounding box for region of interest */ |
32 |
+ |
typedef struct { |
33 |
+ |
float min [3], max [3]; |
34 |
+ |
} PhotonMapROI; |
35 |
|
|
36 |
|
|
37 |
|
extern PhotonMapParams pmapParams [NUM_PMAP_TYPES]; |
45 |
|
#define contribPmapParams (pmapParams [PMAP_TYPE_CONTRIB]) |
46 |
|
|
47 |
|
|
48 |
< |
extern float pdfSamples, preDistrib, finalGather, gatherTolerance, |
49 |
< |
maxDistFix; |
50 |
< |
extern unsigned long photonHeapSizeInc, photonMaxBounce; |
51 |
< |
extern unsigned photonRepTime, maxPreDistrib, defaultGather; |
52 |
< |
#ifdef PMAP_ROI |
53 |
< |
extern float pmapROI [6]; |
48 |
> |
extern float pdfSamples, preDistrib, finalGather, |
49 |
> |
gatherTolerance, maxDistFix; |
50 |
> |
extern unsigned long photonHeapSizeInc, photonMaxBounce; |
51 |
> |
extern unsigned photonRepTime, maxPreDistrib, defaultGather, |
52 |
> |
verbose; |
53 |
> |
|
54 |
> |
extern unsigned pmapNumROI; |
55 |
> |
extern PhotonMapROI *pmapROI; |
56 |
> |
|
57 |
> |
#ifdef PMAP_OOC |
58 |
> |
extern float pmapCachePageSize; |
59 |
> |
extern unsigned long pmapCacheSize; |
60 |
|
#endif |
61 |
+ |
|
62 |
|
|
63 |
|
struct PhotonMap; |
64 |
|
|