This openFrameworks addon gives you an easy way of putting together a chain of GLSL post-processing effects.
C++ Makefile
Permalink
Failed to load latest commit information.
example added makefiles Mar 5, 2015
src change default flip to true Aug 15, 2015
.gitignore Added example Jan 1, 2013
ofxaddons_thumbnail.png ofxaddons thumb Oct 17, 2013
readme.md Update readme.md Apr 11, 2015
screenshot.png screenshot Aug 25, 2013
screenshot_godray.png Added GodRays Aug 27, 2013
screenshot_toon.png Added GodRays Aug 27, 2013

readme.md

ofxPostProcessing

This openFrameworks addon gives you an easy way of putting together a chain of GLSL post-processing effects.

www.neilmendoza.com/ofxpostprocessing

Features

At the moment, it comes with the following effects (some ported from other sources and some original) that I'll gradually add to over time:

  • Bloom
  • Convolution (Blur)
  • Depth of field (with bokeh)
  • Depth of field alternative (more features but heavier)
  • Frei-Chen Edge Detector
  • FXAA anti-aliasing
  • Kaleidoscope
  • Noise warp
  • Pixelate
  • SSAO
  • Toon
  • Godrays
  • Tilt shift
  • Fake subsurface scattering
  • Many others, please see src directory

Usage

In your OF app declare an instance of ofxPostProcessing...

ofxPostProcessing post;

In your setup() function initialise the post-processing class and then add some effects...

post.init(ofGetWidth(), ofGetHeight());
post.createPass<FxaaPass>();
post.createPass<BloomPass>();

Call post.begin() and post.end() around the the scene that you want to render...

post.begin();
<RENDERING CODE>
post.end();

If you are using an ofCamera pass this to post.begin() and it takes care of the rest for you...

post.begin(cam);
<RENDERING CODE>
post.end();

TODO

  • Add support for ofGLProgrammableRenderer with version 150 shaders
  • More FX
  • OpenGL ES, it's based around power of two textures so it should be fairly quick to get working.

Feel free to give me some Bitcoins if you like the addon - 1FxuEpubUwhPaqwmqABvwGmoMcEEMPgxjN