Blender Git Commit Log

Git Commits -> Revision 9b40616

Revision 9b40616 by Sergey Sharybin (master)
July 18, 2015, 20:49 (GMT)
Cycles: Point density texture support

This commit implements point density texture for Cycles shading nodes.

It's done via creating voxel texture at shader compilation time, Not
totally memory efficient, but avoids adding sampling code to kernel
(which keeps render time as low as possible), In the future this will
be compensated by using OpenVDB for more efficient storage of sparse
volume data.

Sampling of the voxel texture is happening at blender side and the
same code is used as for Blender Internal's renderer.

This texture is controlled by only object, particle system and radius.
Linear falloff is used and there's no turbulence. This is because
falloff is expected to happen using Curve Mapping node. Turbulence
will be done as a distortion on the input coordinate. It's already
possible to fake it using nose textures and in the future we can add
more proper turbulence distortion node, which then could also be used
for 2D texture mapping.

Particle color support is done by Lukas, thanks!

Commit Details:

Full Hash: 9b406162490d9ee93e9786350432cdc1563b7bf6
Parent Commit: 7d10798
Lines Changed: +551, -19

3 Added Paths:

/intern/cycles/blender/blender_texture.cpp (+116, -0) (View)
/intern/cycles/blender/blender_texture.h (+31, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.c (+76, -0) (View)

16 Modified Paths:

/intern/cycles/blender/addon/ui.py (+2, -1) (Diff)
/intern/cycles/blender/blender_session.cpp (+23, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+29, -0) (Diff)
/intern/cycles/blender/CMakeLists.txt (+2, -0) (Diff)
/release/scripts/startup/nodeitems_builtins.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_texture.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/texture.c (+6, -4) (Diff)
/source/blender/editors/space_node/drawnode.c (+26, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+29, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+184, -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)
/source/blender/render/intern/source/pointdensity.c (+20, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021