T0M0 wrote: ↑
Sat Nov 02, 2019 2:21 am
I was always curious how ray depth works in Maxwell (speaking of CPU engine).
Is there some value hardcoded for each ray type or maybe some "system" that automatically adjust ray depth based on energy of light reached after certain bounces ? ( i.e. stop computing if value reaches certain threshold )
That code is really old, and I may be wrong. But as far as I know there is no max depth. If you hit sky is game over. If not we have some criteria, like amount of energy that is going to be give to the final pixel or roughness acumulated (try not to kill rays if they are bouncing on mirrors or through glass), and we do a random russian roullete (weaker rays have more chances to be killed). If you kill a ray you adjust the energy that you may loose, giving the other samples a little extra energy.
Is something like that, not very precise explanation, but you can make an idea with this. Maybe we need a place to talk with the most entuthiastic people in private
I don't want to post in public all our secret souce