← Back

ofxiOSPostGlitch

github.com/RyotaKatoh/ofxiOSPostGlitch · @RyotaKatoh
OF 0.8 iOS

An openFrameworks iOS addon that applies the ofxPostGlitch shader effects (glow, slitscan, twist, and more) to images.

2 0 Last commit 12y ago Created 12y ago

README

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