I'm doing light tracing, not eye tracing (aka path tracing): in light tracing, you accumulate the samples on each pixel and then divide the value by the total amount of photon shot; clearly, more "black" photon (i.e. black samples), you add and darker the image becomes.Vutshi wrote: ↑Mon Sep 23, 2019 8:49 am I am curious about this darkening issue LuxCore has. If I understand correctly you said that eventually mollification will start to always return 0 and thus the image gets darker. I do not understand it. In my code if mollification returns 0 the path is just continued further according to the specular reflection/refraction law until it is killed by the Russian roulette.
In eye tracing, instead of black samples, you will start to add samples without the caustic contribution so, instead of having the entire image becoming darker, you will have the disappear of only the caustics (on the long run).
SmallPT will show this behavior, if you choose a very aggressive mollification. Edit the following line:
Code: Select all
molif_r = 1.*pow(1.+s,-1./6); // Mollification shrinkage
Code: Select all
molif_r = 1.*pow(1.+s,-1./2); // Mollification shrinkage