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

# Content
1 #ifndef lint
2 static const char RCSid[] = "$Id: pmaptype.c,v 2.3 2015/08/18 18:45:55 greg Exp $";
3 #endif
4
5 /*
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 (c) Lucerne University of Applied Sciences and Arts,
12 supported by the Swiss National Science Foundation (SNSF, #147053)
13 ==================================================================
14
15 $Id: pmaptype.c,v 1.4 2015/08/10 14:04:02 taschreg Exp taschreg $
16 */
17
18
19 #include "pmaptype.h"
20
21 #ifdef PMAP_OOC
22 #define PMAP_FMTSUFFIX "OOC_Photon_Map"
23 #else
24 #define PMAP_FMTSUFFIX "kdT_Photon_Map"
25 #endif
26
27
28 /* Format strings for photon map files corresponding to PhotonMapType */
29 const char *pmapFormat [NUM_PMAP_TYPES] = {
30 "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 };
34
35 /* Photon map names per type */
36 const char *pmapName [NUM_PMAP_TYPES] = {
37 "global", "precomp", "caustic", "volume", "direct", "contrib"
38 };