Giter Site home page Giter Site logo

pampanelson / ofxpostprocessing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neilmendoza/ofxpostprocessing

0.0 1.0 0.0 1.92 MB

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

Home Page: www.neilmendoza.com/ofxpostprocessing

Makefile 3.12% QML 0.82% C++ 96.06%

ofxpostprocessing's Introduction

ofxPostProcessing

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

www.neilmendoza.com/ofxpostprocessing

NB This addon uses the branch setup as OF itself, the stable branch corresponds to the most recent release (i.e. the version that is downloadable from the OF site) and the master branch is the develop branch. If you have downloaded from the website, the you will want to use the stable branch...

https://github.com/neilmendoza/ofxPostProcessing/tree/stable

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.

ofxpostprocessing's People

Contributors

acarabott avatar edap avatar fx-lange avatar nariakiiwatani avatar neilmendoza avatar satcy avatar zz85 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.