From 1d3186cbcf9e3e463e4e6362ac76862b801cf7ba Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Wed, 20 Jan 2010 04:19:55 +0000 Subject: 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... --- source/blender/makesdna/DNA_node_types.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 9b433c5bf8c..71b607247d3 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -300,6 +300,18 @@ typedef struct NodeLensDist { short jit, proj, fit, pad; } NodeLensDist; +typedef struct NodeColorBalance { + /* for processing */ + float slope[3]; + float offset[3]; + float power[3]; + + /* for ui representation */ + float lift[3]; + float gamma[3]; + float gain[3]; +} NodeColorBalance; + /* TEX_output */ typedef struct TexNodeOutput { char name[32]; -- cgit v1.2.3