Blender Git Loki

Git Commits -> Revision 5873301

Revision 5873301 by Brecht Van Lommel (master)
January 20, 2012, 17:49 (GMT)
Sample as Lamp option for world shaders, to enable multiple importance sampling.

By default lighting from the world is computed solely with indirect light
sampling. However for more complex environment maps this can be too noisy, as
sampling the BSDF may not easily find the highlights in the environment map
image. By enabling this option, the world background will be sampled as a lamp,
with lighter parts automatically given more samples.

Map Resolution specifies the size of the importance map (res x res). Before
rendering starts, an importance map is generated by "baking" a grayscale image
from the world shader. This will then be used to determine which parts of the
background are light and so should receive more samples than darker parts.
Higher resolutions will result in more accurate sampling but take more setup
time and memory.

Patch by Mike Farnsworth, thanks!

Commit Details:

Full Hash: 58733012579bef18c0fe26608a24f8c47eecdcd4
SVN Revision: 43567
Parent Commit: bddc01a
Lines Changed: +505, -66

26 Modified Paths:

/intern/cycles/blender/addon/properties.py (+4, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+28, -0) (Diff)
/intern/cycles/blender/blender_object.cpp (+34, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+0, -3) (Diff)
/intern/cycles/blender/blender_sync.h (+1, -0) (Diff)
/intern/cycles/device/device_cpu.cpp (+2, -2) (Diff)
/intern/cycles/kernel/kernel.cl (+1, -1) (Diff)
/intern/cycles/kernel/kernel.cpp (+1, -1) (Diff)
/intern/cycles/kernel/kernel.cu (+1, -1) (Diff)
/intern/cycles/kernel/kernel.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_differential.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_displace.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_emission.h (+65, -19) (Diff)
/intern/cycles/kernel/kernel_light.h (+128, -5) (Diff)
/intern/cycles/kernel/kernel_montecarlo.h (+28, -6) (Diff)
/intern/cycles/kernel/kernel_optimized.cpp (+1, -1) (Diff)
/intern/cycles/kernel/kernel_path.h (+4, -9) (Diff)
/intern/cycles/kernel/kernel_textures.h (+2, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+7, -5) (Diff)
/intern/cycles/kernel/svm/svm_image.h (+2, -3) (Diff)
/intern/cycles/render/light.cpp (+178, -0) (Diff)
/intern/cycles/render/light.h (+3, -0) (Diff)
/intern/cycles/render/mesh_displace.cpp (+5, -4) (Diff)
/intern/cycles/render/scene.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021