Blender Git Loki
Git Commits -> Revision 26bf230
Revision 26bf230 by Lukas Stockner (master) October 30, 2016, 10:31 (GMT) |
Cycles: Add optional probabilistic termination of light samples based on their expected contribution In scenes with many lights, some of them might have a very small contribution to some pixels, but the shadow rays are traced anyways. To avoid that, this patch adds probabilistic termination to light samples - if the contribution before checking for shadowing is below a user-defined threshold, the sample will be discarded with probability (1 - (contribution / threshold)) and otherwise kept, but weighted more to remain unbiased. This is the same approach that's also used in path termination based on length. Note that the rendering remains unbiased with this option, it just adds a bit of noise - but if the setting is used moderately, the speedup gained easily outweighs the additional noise. Reviewers: #cycles Subscribers: sergey, brecht Differential Revision: https://developer.blender.org/D2217 |
Commit Details:
Full Hash: 26bf230920cb9ca0aa9626430169967f9e120482
Parent Commit: ce78586
Lines Changed: +109, -20
15 Modified Paths:
/intern/cycles/blender/addon/properties.py (+7, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -0) (Diff)
/intern/cycles/blender/blender_sync.cpp (+1, -0) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+33, -5) (Diff)
/intern/cycles/kernel/kernel_emission.h (+13, -2) (Diff)
/intern/cycles/kernel/kernel_path.h (+0, -1) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+8, -4) (Diff)
/intern/cycles/kernel/kernel_path_volume.h (+8, -4) (Diff)
/intern/cycles/kernel/kernel_random.h (+17, -0) (Diff)
/intern/cycles/kernel/kernel_shader.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+3, -2) (Diff)
/intern/cycles/kernel/split/kernel_direct_lighting.h (+2, -1) (Diff)
/intern/cycles/render/integrator.cpp (+8, -0) (Diff)
/intern/cycles/render/integrator.h (+2, -0) (Diff)
/intern/cycles/util/util_math.h (+5, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -0) (Diff)
/intern/cycles/blender/blender_sync.cpp (+1, -0) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+33, -5) (Diff)
/intern/cycles/kernel/kernel_emission.h (+13, -2) (Diff)
/intern/cycles/kernel/kernel_path.h (+0, -1) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+8, -4) (Diff)
/intern/cycles/kernel/kernel_path_volume.h (+8, -4) (Diff)
/intern/cycles/kernel/kernel_random.h (+17, -0) (Diff)
/intern/cycles/kernel/kernel_shader.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+3, -2) (Diff)
/intern/cycles/kernel/split/kernel_direct_lighting.h (+2, -1) (Diff)
/intern/cycles/render/integrator.cpp (+8, -0) (Diff)
/intern/cycles/render/integrator.h (+2, -0) (Diff)
/intern/cycles/util/util_math.h (+5, -0) (Diff)