Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 

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

About

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

Resources

Releases

No releases published

Packages

No packages published

Languages