Blender Git Loki
Git Commits -> Revision 8b955e9
Revision 8b955e9 by Thomas Dinges (master) August 17, 2013, 16:08 (GMT) |
Cycles / Sky Model: * Replaced the Preetham model with the newer Hosek / Wilkie model: "An Analytic Model for Full Spectral Sky-Dome Radiance" http://cgg.mff.cuni.cz/projects/SkylightModelling/ * We use the sample code data, which comes with the paper, but removed some unnecessary parts, we only need the xyz version. * New "Albedo" UI paraemeter, to control the ground albedo (between 0 and 1). * Works with SVM only atm (CPU and CUDA). Example render: http://www.pasteall.org/pic/show.php?id=57635 ToDo / Open Questions: * OSL still uses the old model, will be done later. In the meantime it's useful to compare the two models this way. * The new model needs a much weaker Strength value (0.01), otherwise it's white. Can this be fixed? * Code cleanup. |
Commit Details:
Full Hash: 8b955e9b19dd8616f61c27d5e9d2d80d66dacd96
SVN Revision: 59214
Parent Commit: 0786eeb
Lines Changed: +5223, -63
3 Added Paths:
/intern/cycles/render/sky_model.cpp (+824, -0) (View)
/intern/cycles/render/sky_model.h (+454, -0) (View)
/intern/cycles/render/sky_model_data.h (+3866, -0) (View)
/intern/cycles/render/sky_model.h (+454, -0) (View)
/intern/cycles/render/sky_model_data.h (+3866, -0) (View)
10 Modified Paths:
/intern/cycles/blender/blender_shader.cpp (+1, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+3, -4) (Diff)
/intern/cycles/kernel/svm/svm_sky.h (+15, -12) (Diff)
/intern/cycles/render/CMakeLists.txt (+3, -0) (Diff)
/intern/cycles/render/nodes.cpp (+48, -47) (Diff)
/intern/cycles/render/nodes.h (+1, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+1, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+3, -4) (Diff)
/intern/cycles/kernel/svm/svm_sky.h (+15, -12) (Diff)
/intern/cycles/render/CMakeLists.txt (+3, -0) (Diff)
/intern/cycles/render/nodes.cpp (+48, -47) (Diff)
/intern/cycles/render/nodes.h (+1, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+1, -0) (Diff)