New compositor node "Sun Beams"
authorLukas Tönne <lukas.toenne@gmail.com>
Sat, 26 Jul 2014 10:59:29 +0000 (12:59 +0200)
committerLukas Tönne <lukas.toenne@gmail.com>
Sat, 26 Jul 2014 10:59:29 +0000 (12:59 +0200)
commite15cdec2d49ee47a85897db9838578a298146513
treead3ae9a05feb9819df98504951a80d3c5daadf9b
parent08725cce5a7226165a5599d165217ca89217ad0f
New compositor node "Sun Beams"

This allows adding a "fake" sun beam effect, simulating crepuscular rays
from light being scattered in a medium like the atmosphere or deep water.
Such effects can be created also by renderers using volumetric lighting,
but the compositor feature is a lot cheaper and is independent from 3D
rendering. This makes it ideally suited for motion graphics.

The implementation uses am optimized accumulation method for gathering
color values along a line segment. The inner buffer loop uses fixed
offset increments to avoid unnecessary multiplications and avoids
variables by using compile-time specialization (see inline comments
for further details).
16 files changed:
release/scripts/startup/nodeitems_builtins.py
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/node.c
source/blender/compositor/CMakeLists.txt
source/blender/compositor/intern/COM_Converter.cpp
source/blender/compositor/nodes/COM_SunBeamsNode.cpp [new file with mode: 0644]
source/blender/compositor/nodes/COM_SunBeamsNode.h [new file with mode: 0644]
source/blender/compositor/operations/COM_SunBeamsOperation.cpp [new file with mode: 0644]
source/blender/compositor/operations/COM_SunBeamsOperation.h [new file with mode: 0644]
source/blender/editors/space_node/drawnode.c
source/blender/makesdna/DNA_node_types.h
source/blender/makesrna/intern/rna_nodetree.c
source/blender/nodes/CMakeLists.txt
source/blender/nodes/NOD_composite.h
source/blender/nodes/NOD_static_types.h
source/blender/nodes/composite/nodes/node_composite_sunbeams.c [new file with mode: 0644]