← Back

ofxiOSPostGlitchV2

github.com/jasetom/ofxiOSPostGlitchV2 · @jasetom
OF 0.9 Graphics

A modified fork of ofxiOSPostGlitch for iOS that applies glitch shader effects to FBOs instead of images or cameras.

0 0 Last commit 9y ago Created 9y ago

README

Modified version

This addon is forked from (https://github.com/RyotaKatoh/ofxiOSPostGlitch) and was originally developed by Ryota Katoh http://ryotakatoh.com. I have modified it to meet needs for my project. Now instead of using image or a camera it glitches Fbo.

The following description is from the original version:

ofxiOSPostGlitch

This add-on applies ofxPostGlitch (https://github.com/maxillacult/ofxPostGlitch/) for iOS.

Usage :

You need at least two classes 'ofImage' (or ofVideoGrabber) and 'ofxiOSPostGlitch' to use it.

ofImage image; ofxiOSPostGlitch postGlitch;

In the Setup(), you should give ofImage's pointer to ofxiOSPostGlitch instance.

void ofApp::setup(){ image.loadImage("0.jpg"); postGlitch.setup(&image); }

To apply effect or not, use setShaderOn() or setShaderOff() function.

void ofApp::update(){ postGlitch.setShaderOn(0); postGlitch.update(); }

void ofApp::draw(){ postGlitch.draw(0, 0); }

More details can be found in the example project file.

Glitch FXs

Developer info

Ryota Katoh http://ryotakatoh.com

Get this addon

HTTPS
SSH