This addon is manager for multiple ofxBezierWarp.
This addon need ofxXmlSettings
Author : Teruaki Tsubokura (http://teruaki-tsubokura.com/)
- [ENTER] key : Toggle guide visible.
- [S] key : Save settings.
- [L] key : Load settings.
- Left drag the control point : Move Corners/Anchors.
- Right click the control point : Toggle Bezier/Homoglaphy mode.
- Arrow key : Move Corners/Anchors. (selected control point)
bezManager.setup(10); //WarpResolution
first_fbo.allocate(1920, 1080);
bezManager.addFbo(&first_fbo);
first_fbo.begin();
_mov.draw(0,0,1920,1080);
first_fbo.end();
bezManager.draw();
void ofApp::keyPressed(int key){
bezManager.keyPressed(key);
if(key == OF_KEY_RETURN){
bezManager.toggleGuideVisible();
}
if(key == 's'){
bezManager.saveSettings();
}
if(key == 'l'){
bezManager.loadSettings();
}
}
void ofApp::mouseDragged(int x, int y, int button){
bezManager.mouseDragged(x, y, button);
}
void ofApp::mousePressed(int x, int y, int button){
bezManager.mousePressed(x, y, button);
}