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:
@@ -387,7 +387,7 @@ static void bokeh_single_image(bNode *node, CompBuf *new, CompBuf *img, float fa
|
|||||||
float dist= sqrt(fj*fj + fi*fi);
|
float dist= sqrt(fj*fj + fi*fi);
|
||||||
|
|
||||||
//*dgauss= hexagon_filter(fi, fj);
|
//*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;
|
val+= *dgauss;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user