Blender Git Commit Log
Git Commits -> Revision 01df756
Revision 01df756 by Brecht Van Lommel (master) January 7, 2014, 14:03 (GMT) |
Cycles Volume Render: scattering support. This is done by adding a Volume Scatter node. In many cases you will want to add together a Volume Absorption and Volume Scatter node with the same color and density to get the expected results. This should work with branched path tracing, mixing closures, overlapping volumes, etc. However there's still various optimizations needed for sampling. The main missing thing from the volume branch is the equiangular sampling for homogeneous volumes. The heterogeneous scattering code was arranged such that we can use a single stratified random number for distance sampling, which gives less noise than pseudo random numbers for each step. For volumes where the color is textured there still seems to be something off, needs to be investigated. |
Commit Details:
Full Hash: 01df756bd10709bb707d4f88f14c50e5680d05a5
Parent Commit: b174e7b
Lines Changed: +580, -131
16 Modified Paths:
/intern/cycles/blender/addon/properties.py (+13, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+2, -0) (Diff)
/intern/cycles/blender/blender_sync.cpp (+4, -0) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+17, -0) (Diff)
/intern/cycles/kernel/closure/volume.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_emission.h (+7, -0) (Diff)
/intern/cycles/kernel/kernel_path.h (+142, -4) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+46, -28) (Diff)
/intern/cycles/kernel/kernel_shader.h (+99, -18) (Diff)
/intern/cycles/kernel/kernel_types.h (+15, -3) (Diff)
/intern/cycles/kernel/kernel_volume.h (+214, -71) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -0) (Diff)
/intern/cycles/render/integrator.cpp (+11, -0) (Diff)
/intern/cycles/render/integrator.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
/intern/cycles/blender/addon/ui.py (+2, -0) (Diff)
/intern/cycles/blender/blender_sync.cpp (+4, -0) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+17, -0) (Diff)
/intern/cycles/kernel/closure/volume.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_emission.h (+7, -0) (Diff)
/intern/cycles/kernel/kernel_path.h (+142, -4) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+46, -28) (Diff)
/intern/cycles/kernel/kernel_shader.h (+99, -18) (Diff)
/intern/cycles/kernel/kernel_types.h (+15, -3) (Diff)
/intern/cycles/kernel/kernel_volume.h (+214, -71) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -0) (Diff)
/intern/cycles/render/integrator.cpp (+11, -0) (Diff)
/intern/cycles/render/integrator.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)