Blender Git Commit Log
Git Commits -> Revision de9dffc
Revision de9dffc by Brecht Van Lommel (master) April 1, 2013, 20:26 (GMT) |
Cycles: initial subsurface multiple scattering support. It's not working as well as I would like, but it works, just add a subsurface scattering node and you can use it like any other BSDF. It is using fully raytraced sampling compatible with progressive rendering and other more advanced rendering algorithms we might used in the future, and it uses no extra memory so it's suitable for complex scenes. Disadvantage is that it can be quite noisy and slow. Two limitations that will be solved are that it does not work with bump mapping yet, and that the falloff function used is a simple cubic function, it's not using the real BSSRDF falloff function yet. The node has a color input, along with a scattering radius for each RGB color channel along with an overall scale factor for the radii. There is also no GPU support yet, will test if I can get that working later. Node Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#BSSRDF Implementation notes: http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/Subsurface_Scattering |
Commit Details:
Full Hash: de9dffc61e15a6af41947cbcf09ada89779e86ac
SVN Revision: 55708
Parent Commit: 40b05d3
Lines Changed: +1803, -251
8 Added Paths:
/intern/cycles/kernel/closure/bssrdf.h (+154, -0) (View)
/intern/cycles/kernel/kernel_subsurface.h (+224, -0) (View)
/intern/cycles/kernel/osl/osl_bssrdf.cpp (+90, -0) (View)
/intern/cycles/kernel/osl/osl_bssrdf.h (+65, -0) (View)
/intern/cycles/kernel/shaders/node_subsurface_scattering.osl (+33, -0) (View)
/intern/cycles/render/bssrdf.cpp (+139, -0) (View)
/intern/cycles/render/bssrdf.h (+31, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.c (+69, -0) (View)
/intern/cycles/kernel/kernel_subsurface.h (+224, -0) (View)
/intern/cycles/kernel/osl/osl_bssrdf.cpp (+90, -0) (View)
/intern/cycles/kernel/osl/osl_bssrdf.h (+65, -0) (View)
/intern/cycles/kernel/shaders/node_subsurface_scattering.osl (+33, -0) (View)
/intern/cycles/render/bssrdf.cpp (+139, -0) (View)
/intern/cycles/render/bssrdf.h (+31, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.c (+69, -0) (View)
47 Modified Paths:
/intern/cycles/blender/addon/properties.py (+7, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+3, -1) (Diff)
/intern/cycles/blender/blender_sync.cpp (+1, -0) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+1, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_bvh.h (+320, -0) (Diff)
/intern/cycles/kernel/kernel_camera.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+0, -13) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+0, -1) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+0, -12) (Diff)
/intern/cycles/kernel/kernel_globals.h (+34, -0) (Diff)
/intern/cycles/kernel/kernel_path.h (+252, -170) (Diff)
/intern/cycles/kernel/kernel_random.h (+14, -0) (Diff)
/intern/cycles/kernel/kernel_shader.h (+99, -4) (Diff)
/intern/cycles/kernel/kernel_types.h (+31, -12) (Diff)
/intern/cycles/kernel/osl/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+2, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+2, -0) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+39, -2) (Diff)
/intern/cycles/kernel/shaders/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+53, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -2) (Diff)
/intern/cycles/render/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/render/film.cpp (+4, -2) (Diff)
/intern/cycles/render/graph.h (+1, -0) (Diff)
/intern/cycles/render/integrator.cpp (+3, -0) (Diff)
/intern/cycles/render/integrator.h (+1, -0) (Diff)
/intern/cycles/render/nodes.cpp (+32, -5) (Diff)
/intern/cycles/render/nodes.h (+9, -1) (Diff)
/intern/cycles/render/osl.cpp (+9, -3) (Diff)
/intern/cycles/render/osl.h (+4, -2) (Diff)
/intern/cycles/render/scene.cpp (+1, -2) (Diff)
/intern/cycles/render/shader.cpp (+32, -2) (Diff)
/intern/cycles/render/shader.h (+5, -2) (Diff)
/intern/cycles/render/svm.cpp (+8, -3) (Diff)
/intern/cycles/render/svm.h (+1, -1) (Diff)
/intern/cycles/render/tables.cpp (+5, -1) (Diff)
/intern/cycles/render/tables.h (+1, -0) (Diff)
/intern/cycles/util/util_math.h (+1, -8) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+5, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+3, -1) (Diff)
/intern/cycles/blender/blender_sync.cpp (+1, -0) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+1, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_bvh.h (+320, -0) (Diff)
/intern/cycles/kernel/kernel_camera.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+0, -13) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+0, -1) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+0, -12) (Diff)
/intern/cycles/kernel/kernel_globals.h (+34, -0) (Diff)
/intern/cycles/kernel/kernel_path.h (+252, -170) (Diff)
/intern/cycles/kernel/kernel_random.h (+14, -0) (Diff)
/intern/cycles/kernel/kernel_shader.h (+99, -4) (Diff)
/intern/cycles/kernel/kernel_types.h (+31, -12) (Diff)
/intern/cycles/kernel/osl/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+2, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+2, -0) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+39, -2) (Diff)
/intern/cycles/kernel/shaders/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+53, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -2) (Diff)
/intern/cycles/render/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/render/film.cpp (+4, -2) (Diff)
/intern/cycles/render/graph.h (+1, -0) (Diff)
/intern/cycles/render/integrator.cpp (+3, -0) (Diff)
/intern/cycles/render/integrator.h (+1, -0) (Diff)
/intern/cycles/render/nodes.cpp (+32, -5) (Diff)
/intern/cycles/render/nodes.h (+9, -1) (Diff)
/intern/cycles/render/osl.cpp (+9, -3) (Diff)
/intern/cycles/render/osl.h (+4, -2) (Diff)
/intern/cycles/render/scene.cpp (+1, -2) (Diff)
/intern/cycles/render/shader.cpp (+32, -2) (Diff)
/intern/cycles/render/shader.h (+5, -2) (Diff)
/intern/cycles/render/svm.cpp (+8, -3) (Diff)
/intern/cycles/render/svm.h (+1, -1) (Diff)
/intern/cycles/render/tables.cpp (+5, -1) (Diff)
/intern/cycles/render/tables.h (+1, -0) (Diff)
/intern/cycles/util/util_math.h (+1, -8) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+5, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -0) (Diff)