Durian request: Added 'Color Balance' node to compositor. uses Lift/Gamma/Gain
authorMatt Ebb <matt@mke3.net>
Wed, 20 Jan 2010 04:19:55 +0000 (04:19 +0000)
committerMatt Ebb <matt@mke3.net>
Wed, 20 Jan 2010 04:19:55 +0000 (04:19 +0000)
commit1d3186cbcf9e3e463e4e6362ac76862b801cf7ba
tree450dc8b914efeb8829f815dbba1f9aabd7449a0f
parent8bcf66e1d16ece55f8736797f7d4180a456060ff
Durian request: Added 'Color Balance' node to compositor. uses Lift/Gamma/Gain
similar to sequence editor.

--> http://mke3.net/blender/devel/2.5/color_balance_node.jpg

Also added 0 key (zero key) shortcut when mouse is over a button, to reset it to its default value.
Same as the RMB menu ->Reset to Default, except for color wheels, it only resets the hue/sat/value
components that that widget affects.

Peter/Xavier: The existing color balance code can generate NaNs (fractional power of a negative),
which causes havoc along the image pipeline. I added a check in the node code to prevent this.

Still plenty of potential for lots of better colour correction tools in the compositor, just needs time...
14 files changed:
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/node.c
source/blender/blenlib/BLI_math_color.h
source/blender/blenlib/intern/math_color.c
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/space_image/space_image.c
source/blender/editors/space_node/drawnode.c
source/blender/makesdna/DNA_node_types.h
source/blender/makesrna/intern/rna_nodetree.c
source/blender/makesrna/intern/rna_nodetree_types.h
source/blender/nodes/CMP_node.h
source/blender/nodes/intern/node_util.h