Cycles: Option to Sample all Lights in the Branched Path integrator for indirect...
authorThomas Dinges <blender@dingto.org>
Sun, 9 Mar 2014 21:19:27 +0000 (22:19 +0100)
committerThomas Dinges <blender@dingto.org>
Sun, 9 Mar 2014 21:20:01 +0000 (22:20 +0100)
commit99e20d7b8930479edfacae246a529e03b84264ae
tree9bffdd2a43d7948a864528f205eef4f3c86687b3
parent6fdbab43662d3f646f7d94bfaad83111f7d41830
Cycles: Option to Sample all Lights in the Branched Path integrator for indirect samples

This adds a new option "Sample All Lights" to the Sampling panel in Cycles (Branched Path). When enabled, Cycles will sample all the lights in the scene for the indirect samples, instead of randomly picking one. This is already happening for direct samples, now you can optionally enable it for indirect.

Example file and renders:
Blend file: http://www.pasteall.org/blend/27411
Random: http://www.pasteall.org/pic/show.php?id=68033
All: http://www.pasteall.org/pic/show.php?id=68034

Sampling all lights is a bit slower, but there is less variance, so it should help in situations with many lights.

Patch by myself with some tweaks by Brecht.
Differential Revision: https://developer.blender.org/D391
intern/cycles/blender/addon/properties.py
intern/cycles/blender/addon/ui.py
intern/cycles/blender/blender_sync.cpp
intern/cycles/kernel/kernel_path.h
intern/cycles/kernel/kernel_types.h
intern/cycles/render/integrator.cpp
intern/cycles/render/integrator.h