[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38347] trunk/blender/source/blender/nodes /intern/CMP_nodes/CMP_blur.c: Bokeh blur in the blur node is wronlgy calculated.
Jeroen Bakker
j.bakker at atmind.nl
Tue Jul 12 21:21:38 CEST 2011
Revision: 38347
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38347
Author: jbakker
Date: 2011-07-12 19:21:38 +0000 (Tue, 12 Jul 2011)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c
Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c 2011-07-12 19:15:53 UTC (rev 38346)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_blur.c 2011-07-12 19:21:38 UTC (rev 38347)
@@ -387,7 +387,7 @@
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;
}
More information about the Bf-blender-cvs
mailing list