ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmaptype.c
Revision: 2.5
Committed: Tue May 17 17:39:47 2016 UTC (7 years, 11 months ago) by rschregle
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, rad5R1, HEAD
Changes since 2.4: +12 -4 lines
Log Message:
Initial import of ooC photon map

File Contents

# User Rev Content
1 greg 2.3 #ifndef lint
2 greg 2.4 static const char RCSid[] = "$Id: pmaptype.c,v 2.3 2015/08/18 18:45:55 greg Exp $";
3 greg 2.3 #endif
4 rschregle 2.5
5 greg 2.1 /*
6     ==================================================================
7     Photon map types and corresponding file format strings
8    
9     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
10     (c) Fraunhofer Institute for Solar Energy Systems,
11 rschregle 2.2 (c) Lucerne University of Applied Sciences and Arts,
12     supported by the Swiss National Science Foundation (SNSF, #147053)
13 greg 2.1 ==================================================================
14 rschregle 2.5
15     $Id: pmaptype.c,v 1.4 2015/08/10 14:04:02 taschreg Exp taschreg $
16 greg 2.1 */
17    
18    
19     #include "pmaptype.h"
20    
21 rschregle 2.5 #ifdef PMAP_OOC
22     #define PMAP_FMTSUFFIX "OOC_Photon_Map"
23     #else
24     #define PMAP_FMTSUFFIX "kdT_Photon_Map"
25     #endif
26    
27 greg 2.1
28     /* Format strings for photon map files corresponding to PhotonMapType */
29     const char *pmapFormat [NUM_PMAP_TYPES] = {
30 rschregle 2.5 "Radiance_Global_" PMAP_FMTSUFFIX, "Radiance_PreComp_" PMAP_FMTSUFFIX,
31     "Radiance_Caustic_" PMAP_FMTSUFFIX, "Radiance_Volume_" PMAP_FMTSUFFIX,
32     "Radiance_Direct_" PMAP_FMTSUFFIX, "Radiance_Contrib_" PMAP_FMTSUFFIX
33 greg 2.1 };
34    
35     /* Photon map names per type */
36     const char *pmapName [NUM_PMAP_TYPES] = {
37     "global", "precomp", "caustic", "volume", "direct", "contrib"
38     };