ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmaprand.c
Revision: 2.4
Committed: Tue Sep 1 16:27:52 2015 UTC (8 years, 8 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R0
Changes since 2.3: +1 -2 lines
Log Message:
Removed redundant $Id: in file

File Contents

# User Rev Content
1 greg 2.3 #ifndef lint
2 greg 2.4 static const char RCSid[] = "$Id: pmaprand.c,v 2.3 2015/08/18 18:45:55 greg Exp $";
3 greg 2.3 #endif
4 greg 2.1 /*
5     ==================================================================
6     Random number generators for photon distribution
7    
8     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
9     (c) Fraunhofer Institute for Solar Energy Systems,
10 rschregle 2.2 (c) Lucerne University of Applied Sciences and Arts,
11     supported by the Swiss National Science Foundation (SNSF, #147053)
12 greg 2.1 ==================================================================
13    
14     */
15    
16    
17    
18     /*
19     Separate RNG states are used for the following variates during photon
20     distribution:
21    
22     - source partition
23     - emission direction
24     - emission counter fraction
25     - mean free distance in medium
26     - scattering direction
27     - russian roulette.
28    
29     Each photon map also has a local state randState used for distribRatio
30     during distribution and for bias compensation during gathering.
31    
32     The random seed randSeed can added to each initial state with pmapSeed()
33     so the RNGs can be externally seeded if necessary.
34     */
35    
36     unsigned short partState [3] = {47717, 5519, 21521},
37     emitState [3] = {33997, 59693, 11003},
38     cntState [3] = {17077, 4111, 48907},
39     mediumState [3] = {25247, 7507, 33797},
40     scatterState [3] = {21863, 45191, 5099},
41     rouletteState [3] = {10243, 39829, 9433},
42     randSeed = 0;