From a557773f46fb11ae7c99e96b292182275b27de4b Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 12 Jul 2011 19:21:38 +0000 Subject: Bokeh blur in the blur node is wronlgy calculated. when using the node on a single white pixel on black background, the output should look like as the bokeh image. being a round image, but it looked like a donut. the make_gausstab used dist/rad and bokeh used (dist/rad)*2 - 1 I changed it to reflect the correct bokeh circular image --- source/blender/nodes/intern/CMP_nodes/CMP_blur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/nodes/intern/CMP_nodes') diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c index 2b33126b3a7..718578a921b 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_blur.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_blur.c @@ -387,7 +387,7 @@ static void bokeh_single_image(bNode *node, CompBuf *new, CompBuf *img, float fa float dist= sqrt(fj*fj + fi*fi); //*dgauss= hexagon_filter(fi, fj); - *dgauss= RE_filter_value(nbd->filtertype, 2.0f*dist - 1.0f); + *dgauss= RE_filter_value(nbd->filtertype, dist); val+= *dgauss; } -- cgit v1.2.3