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
This commit is contained in:
2011-07-12 19:21:38 +00:00
parent b724c7f27e
commit a557773f46

View File

@@ -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;
}