ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmcontrib2.c
(Generate patch)

Comparing ray/src/rt/pmcontrib2.c (file contents):
Revision 2.2 by greg, Fri Sep 30 16:51:46 2016 UTC vs.
Revision 2.3 by rschregle, Mon Aug 14 21:12:10 2017 UTC

# Line 81 | Line 81 | void initPmapContrib (LUTAB *srcContrib, unsigned numS
81    
82     if (contribPhotonMapping) {
83        if (contribPmap -> maxGather < numSrcContrib) {
84 + #if 0          
85           /* Adjust density estimate bandwidth if lower than modifier
86            * count, otherwise contributions are missing */
87           error(WARNING, "contrib density estimate bandwidth too low, "
88                          "adjusting to modifier count");
89           contribPmap -> maxGather = numSrcContrib;
90 + #else
91 +         /* Warn if density estimate bandwidth is lower than modifier
92 +          * count, since some contributions will be missing */
93 +         error(WARNING, "photon density estimate bandwidth too low,"
94 +                        " contributions may be underestimated");
95 + #endif
96        }
97        
98        /* Sanity check */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines