Blender Git Loki

Git Commits -> Revision 0df9b2c

Revision 0df9b2c by Brecht Van Lommel (master)
February 9, 2018, 18:58 (GMT)
Cycles: random walk subsurface scattering.

It is basically brute force volume scattering within the mesh, but part
of the SSS code for faster performance. The main difference with actual
volume scattering is that we assume the boundaries are diffuse and that
all lighting is coming through this boundary from outside the volume.

This gives much more accurate results for thin features and low density.
Some challenges remain however:

* Significantly more noisy than BSSRDF. Adding Dwivedi sampling may help
here, but it's unclear still how much it helps in real world cases.
* Due to this being a volumetric method, geometry like eyes or mouth can
darken the skin on the outside. We may be able to reduce this effect,
or users can compensate for it by reducing the scattering radius in
such areas.
* Sharp corners are quite bright. This matches actual volume rendering
and results in some other renderers, but maybe not so much real world
objects.

Differential Revision: https://developer.blender.org/D3054

Commit Details:

Full Hash: 0df9b2c71517a98760a5e577f434d9d86e4e1910
Parent Commit: 3ab5ef7
Lines Changed: +339, -64

22 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+3, -0) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+1, -3) (Diff)
/intern/cycles/kernel/closure/bssrdf.h (+2, -1) (Diff)
/intern/cycles/kernel/closure/volume.h (+25, -15) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle_intersect.h (+36, -18) (Diff)
/intern/cycles/kernel/geom/geom_triangle_intersect.h (+26, -14) (Diff)
/intern/cycles/kernel/kernel_path.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_path_subsurface.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+200, -4) (Diff)
/intern/cycles/kernel/kernel_types.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_volume.h (+12, -0) (Diff)
/intern/cycles/kernel/osl/osl_bssrdf.cpp (+4, -0) (Diff)
/intern/cycles/kernel/shaders/node_subsurface_scattering.osl (+3, -1) (Diff)
/intern/cycles/kernel/split/kernel_subsurface_scatter.h (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+2, -1) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+4, -2) (Diff)
/intern/cycles/render/integrator.cpp (+4, -1) (Diff)
/intern/cycles/render/nodes.cpp (+1, -0) (Diff)
/intern/cycles/util/util_math_float3.h (+6, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021