--- ray/src/rt/pmcontrib2.c 2016/09/29 21:51:58 2.1 +++ ray/src/rt/pmcontrib2.c 2017/08/14 21:12:10 2.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pmcontrib2.c,v 2.1 2016/09/29 21:51:58 greg Exp $"; +static const char RCSid[] = "$Id: pmcontrib2.c,v 2.3 2017/08/14 21:12:10 rschregle Exp $"; #endif /* @@ -11,7 +11,7 @@ static const char RCSid[] = "$Id: pmcontrib2.c,v 2.1 2 supported by the Swiss National Science Foundation (SNSF, #147053) ====================================================================== - $Id: pmcontrib2.c,v 2.1 2016/09/29 21:51:58 greg Exp $ + $Id: pmcontrib2.c,v 2.3 2017/08/14 21:12:10 rschregle Exp $ */ @@ -23,8 +23,6 @@ static const char RCSid[] = "$Id: pmcontrib2.c,v 2.1 2 #include "pmapdiag.h" #include "rcontrib.h" #include "otypes.h" -#include -#include @@ -83,11 +81,18 @@ void initPmapContrib (LUTAB *srcContrib, unsigned numS if (contribPhotonMapping) { if (contribPmap -> maxGather < numSrcContrib) { +#if 0 /* Adjust density estimate bandwidth if lower than modifier * count, otherwise contributions are missing */ error(WARNING, "contrib density estimate bandwidth too low, " "adjusting to modifier count"); contribPmap -> maxGather = numSrcContrib; +#else + /* Warn if density estimate bandwidth is lower than modifier + * count, since some contributions will be missing */ + error(WARNING, "photon density estimate bandwidth too low," + " contributions may be underestimated"); +#endif } /* Sanity check */