Keeps large FBO blurring at interactive speeds by utilizing a set of incrementally scaled down ofxFboBlur objects, and dynamically blurs and fades between them.
Forks
Forks pushed to more recently than btparker/ofxMultiFboBlur itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxMultiFboBlur
Keeps FBO blurring at interactive speeds by utilizing a set of incrementally scaled down ofxFboBlur objects, and dynamically blurs and fades between them.
Requires addons: ofxFboBlur ofxMask
Example:
ofFbo::Settings fboS;
fboS.width = img.getWidth();
fboS.height = img.getHeight();
fboS.internalformat = GL_RGB;
int levels = 5;
float levelBlurSize = 40.0f;
ofxMultiFboBlur multiFboBlur;
multiFboBlur.setup(fboS, levels, levelBlurSize);When drawing this, at blurOffset 0.0f the full resolution image is only drawn, at blur 40.0f the next level (0.5 scaled, 20.0f blur) is only drawn, at blur 20.0f it is a crossfade between the two.
Each additional level is half the resolution of the previous one.
Example image credit
ofxAddons