← Back

ofxMultiFboBlur

github.com/btparker/ofxMultiFboBlur · @btparker
OF 0.8 Graphics

Keeps large FBO blurring at interactive speeds by utilizing a set of incrementally scaled down ofxFboBlur objects, and dynamically blurs and fades between them.

8 2 Last commit 11y ago Created 11y ago

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.

local-projects/ofxMultiFboBlur by @local-projects · ★ 1 · pushed 8y ago

README

ofxMultiFboBlur

Thumbnail

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

Get this addon

HTTPS
SSH