7 |
|
|
8 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com} |
9 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
10 |
+ |
supported by the German Research Foundation |
11 |
+ |
(DFG LU-204/10-2, "Fassadenintegrierte Regelsysteme" (FARESYS)) |
12 |
|
(c) Lucerne University of Applied Sciences and Arts, |
13 |
< |
supported by the Swiss National Science Foundation (SNSF, #147053) |
13 |
> |
supported by the Swiss National Science Foundation |
14 |
> |
(SNSF #147053, "Daylight Redirecting Components") |
15 |
|
====================================================================== |
16 |
|
|
17 |
|
$Id$ |
30 |
|
unsigned minGather, maxGather; /* Num photons to gather */ |
31 |
|
unsigned long distribTarget; /* Num photons to store */ |
32 |
|
} PhotonMapParams; |
33 |
+ |
|
34 |
+ |
/* Region of interest */ |
35 |
+ |
typedef struct { |
36 |
+ |
/* siz [1], siz [2] <= 0 --> sphere, else rectangle */ |
37 |
+ |
float pos [3], siz [3]; |
38 |
+ |
} PhotonMapROI; |
39 |
+ |
|
40 |
+ |
#define PMAP_ROI_ISSPHERE(roi) ((roi)->siz[1] <= 0 && (roi)->siz[2] <= 0) |
41 |
+ |
#define PMAP_ROI_SETSPHERE(roi) ((roi)->siz[1] = (roi)->siz[2] = -1) |
42 |
|
|
43 |
|
|
44 |
|
extern PhotonMapParams pmapParams [NUM_PMAP_TYPES]; |
53 |
|
|
54 |
|
|
55 |
|
extern float pdfSamples, preDistrib, finalGather, |
56 |
< |
gatherTolerance, maxDistFix; |
56 |
> |
gatherTolerance, maxDistFix, pmapMaxDist, |
57 |
> |
photonMaxDist; |
58 |
|
extern unsigned long photonHeapSizeInc, photonMaxBounce; |
59 |
< |
extern unsigned photonRepTime, maxPreDistrib, defaultGather; |
60 |
< |
|
61 |
< |
#ifdef PMAP_ROI |
62 |
< |
extern float pmapROI [6]; |
63 |
< |
#endif |
59 |
> |
extern unsigned photonRepTime, maxPreDistrib, defaultGather, |
60 |
> |
verbose; |
61 |
> |
|
62 |
> |
extern unsigned pmapNumROI; |
63 |
> |
extern PhotonMapROI *pmapROI; |
64 |
|
|
65 |
|
#ifdef PMAP_OOC |
66 |
|
extern float pmapCachePageSize; |