Skip to content

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

Notifications You must be signed in to change notification settings

isthisgood/ofxPostProcessing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Depth of field (with bokeh)
  • Depth of field alternative (more features but heavier)
  • Frei-Chen Edge Detector
  • FXAA anti-aliasing
  • Kaleidoscope
  • Noise warp
  • Pixelate

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

  • More FX
  • OpenGL ES, it's based around power of two textures so it should be fairly quick to get working.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published