Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ build/
*.perspectivev3
*.mode1v3
*.mode2v3
/example/bin/
/example/obj/
/example/build/
example/*.layout
/example-ofxBezierWarp/bin/
/example-ofxBezierWarp/nbproject/
/example-ofxBezierWarp/obj/
/example-ofxBezierWarp/build/
example-ofxBezierWarp/*.layout

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ It's pretty fast.

Code was adapted from the method described here: http://forum.openframeworks.cc/index.php/topic,4002.0.html

If you're using this software for something cool consider sending me an email to let me know about your project: m@gingold.com.au
If you're using this software for something cool consider sending me an email to let me know about your project: m@gingold.com.au


##Fork by dasoe:

Added new (kind of hidden) functionality:
When hitting SHIFT while grabbing a corner point of the warp grid all points turn red instead of green. When realeasing the mouse while they are red, all points are rearranged equally - subject to the position of the 4 corners. This is especially useful for (perspective) warping before doing any fine-tuning.
3 changes: 1 addition & 2 deletions example-ofxBezierWarp/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
//========================================================================
int main( ){

ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context

// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
Expand Down
4 changes: 2 additions & 2 deletions example-ofxBezierWarp/src/testApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

//--------------------------------------------------------------
void testApp::setup(){

ofSetFrameRate(60);
bUseWarp = true;

// load a movie for testing purposes
vid.loadMovie("pathtoyourmovie.mov");
vid.loadMovie("val_h.mp4");
vid.play();

// allocate the warp with width, height, numXControlPoints,
Expand Down
Loading