Skip to content

abocanegra/ofxBlur

 
 

Repository files navigation

ofxBlur is an addon for openFrameworks

ofxBlur uses a ping-pong technique on the graphics card to do a very fast, configurable blur. ofxBlur can also simulate bloom given the right parameters.

Only call setup() once. You must specify the width and height so the internal FBOs can be allocated. radiusdescribes the radius of the blur kernel. The larger the radius, the longer it takes to compute the blur. If you want a larger apparent radius at the same speed, use setScale(x) where x>1. This yields a lower-quality but faster blur. shape describes the circularity/squareness of the kernel. For a more circular kernel, use smaller values like .2 and for a more square kernel use larger values like 10. For more square kernels, rotating the kernel has an obvious visual effect. use setRotation() to set the rotation of the kernel in radians. Finally, using the passes and downsample arguments, you can run the blur filter multiple times at different scales and ofxBlur will combine the results for you. This can be used to create a more bloom-like or fog-like effect.

ofxBlur was originally written for Eyeshine, a collaboration between Golan Levin and Kyle McDonald.

Updated for OpenFrameworks 0.9+, altered deprecated calls

About

A very fast, configurable GPU blur addon that can also simulate bloom and different kernel shapes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 89.6%
  • C++ 8.5%
  • QML 1.4%
  • Shell 0.5%