-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,274 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_project_file> | ||
<FileVersion major="1" minor="6" /> | ||
<Project> | ||
<Option title="ofxVideoMappingExample" /> | ||
<Option makefile="makefile" /> | ||
<Option pch_mode="2" /> | ||
<Option compiler="gcc" /> | ||
<Option virtualFolders="addons\;src\;addons\ofxVideoMapping\;" /> | ||
<Build> | ||
<Target title="release"> | ||
<Option output="bin\$(PROJECT_NAME)" prefix_auto="1" extension_auto="1" /> | ||
<Option working_dir="bin" /> | ||
<Option object_output="obj\release" /> | ||
<Option external_deps="..\..\..\libs\openFrameworksCompiled\lib\win_cb\openFrameworks.lib;" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Option projectLinkerOptionsRelation="2" /> | ||
<Compiler> | ||
<Add option="-O2" /> | ||
</Compiler> | ||
<Linker> | ||
<Add option="-s" /> | ||
<Add option="../../../libs/openFrameworksCompiled/lib/win_cb/openFrameworks.lib" /> | ||
</Linker> | ||
</Target> | ||
<Target title="debug"> | ||
<Option output="bin\$(PROJECT_NAME)_DEBUG" prefix_auto="1" extension_auto="1" /> | ||
<Option working_dir="bin" /> | ||
<Option object_output="obj\debug\" /> | ||
<Option external_deps="..\..\..\libs\openFrameworksCompiled\lib\win_cb\openFrameworksDebug.lib;" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Option projectLinkerOptionsRelation="2" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
</Compiler> | ||
<Linker> | ||
<Add option="../../../libs/openFrameworksCompiled/lib/win_cb/openFrameworksDebug.lib" /> | ||
</Linker> | ||
</Target> | ||
</Build> | ||
<Compiler> | ||
<Add option="-Wno-multichar" /> | ||
<Add directory="..\..\..\libs\glu\include" /> | ||
<Add directory="..\..\..\libs\freetype\include" /> | ||
<Add directory="..\..\..\libs\freetype\include\freetype2" /> | ||
<Add directory="..\..\..\libs\FreeImage\include" /> | ||
<Add directory="..\..\..\libs\quicktime\include" /> | ||
<Add directory="..\..\..\libs\rtAudio\include" /> | ||
<Add directory="..\..\..\libs\fmodex\include" /> | ||
<Add directory="..\..\..\libs\videoInput\include" /> | ||
<Add directory="..\..\..\libs\glew\include" /> | ||
<Add directory="..\..\..\libs\glut\include" /> | ||
<Add directory="..\..\..\libs\openFrameworks" /> | ||
<Add directory="..\..\..\libs\openFrameworks\3d" /> | ||
<Add directory="..\..\..\libs\openFrameworks\app" /> | ||
<Add directory="..\..\..\libs\openFrameworks\communication" /> | ||
<Add directory="..\..\..\libs\openFrameworks\events" /> | ||
<Add directory="..\..\..\libs\openFrameworks\gl" /> | ||
<Add directory="..\..\..\libs\openFrameworks\graphics" /> | ||
<Add directory="..\..\..\libs\openFrameworks\math" /> | ||
<Add directory="..\..\..\libs\openFrameworks\sound" /> | ||
<Add directory="..\..\..\libs\openFrameworks\types" /> | ||
<Add directory="..\..\..\libs\openFrameworks\utils" /> | ||
<Add directory="..\..\..\libs\openFrameworks\video" /> | ||
<Add directory="..\..\..\libs\poco\include" /> | ||
<Add directory="..\..\..\libs\tess2\include" /> | ||
<Add directory="..\..\..\libs\cairo\include\cairo" /> | ||
<Add directory="..\src" /> | ||
</Compiler> | ||
<Linker> | ||
<Add library="..\..\..\libs\FreeImage\lib\win_cb\FreeImage.lib" /> | ||
<Add library="..\..\..\libs\rtAudio\lib\win_cb\librtaudio.a" /> | ||
<Add library="..\..\..\libs\quicktime\lib\win_cb\qtmlClient.lib" /> | ||
<Add library="..\..\..\libs\cairo\lib\win_cb\libcairo.a" /> | ||
<Add library="..\..\..\libs\cairo\lib\win_cb\libpixman-1.a" /> | ||
<Add library="..\..\..\libs\freetype\lib\win_cb\libfreetype.a" /> | ||
<Add library="..\..\..\libs\glut\lib\win_cb\libglut.a" /> | ||
<Add library="..\..\..\libs\videoInput\lib\win_cb\videoInputLib.a" /> | ||
<Add library="..\..\..\libs\fmodex\lib\win_cb\libfmodex.a" /> | ||
<Add library="..\..\..\libs\glew\lib\win_cb\glew32s.lib" /> | ||
<Add library="..\..\..\libs\glu\lib\win_cb\glu32.lib" /> | ||
<Add library="..\..\..\libs\poco\lib\win_cb\libPocoNetmt.a" /> | ||
<Add library="..\..\..\libs\poco\lib\win_cb\libPocoUtilmt.a" /> | ||
<Add library="..\..\..\libs\poco\lib\win_cb\libPocoXMLmt.a" /> | ||
<Add library="..\..\..\libs\poco\lib\win_cb\libPocoFoundationmt.a" /> | ||
<Add library="..\..\..\libs\tess2\lib\win_cb\libtess2.a" /> | ||
<Add library="opengl32" /> | ||
<Add library="gdi32" /> | ||
<Add library="msimg32" /> | ||
<Add library="glu32" /> | ||
<Add library="dsound" /> | ||
<Add library="winmm" /> | ||
<Add library="dxguid" /> | ||
<Add library="strmbase" /> | ||
<Add library="strmiids" /> | ||
<Add library="z" /> | ||
<Add library="uuid" /> | ||
<Add library="ole32" /> | ||
<Add library="oleaut32" /> | ||
<Add library="setupapi" /> | ||
<Add library="wsock32" /> | ||
<Add library="ws2_32" /> | ||
<Add library="Iphlpapi" /> | ||
</Linker> | ||
<ExtraCommands> | ||
<Add after='xcopy /e /i /y "$(PROJECT_DIR)..\..\..\export\win_cb\*.dll" "$(PROJECT_DIR)bin"' /> | ||
<Add after='cmd /c if not exist "$(PROJECT_DIR)bin/data" mkdir "$(PROJECT_DIR)bin/data"' /> | ||
<Mode after="always" /> | ||
</ExtraCommands> | ||
<Unit filename="src\main.cpp"> | ||
<Option virtualFolder="src" /> | ||
</Unit> | ||
<Unit filename="src\testApp.cpp"> | ||
<Option virtualFolder="src" /> | ||
</Unit> | ||
<Unit filename="src\testApp.h"> | ||
<Option virtualFolder="src" /> | ||
</Unit> | ||
<Unit filename="..\src\homography.h"> | ||
<Option virtualFolder="addons\ofxVideoMapping\" /> | ||
</Unit> | ||
<Unit filename="..\src\ofxQuad.cpp"> | ||
<Option virtualFolder="addons\ofxVideoMapping\" /> | ||
</Unit> | ||
<Unit filename="..\src\ofxQuad.h"> | ||
<Option virtualFolder="addons\ofxVideoMapping\" /> | ||
</Unit> | ||
<Unit filename="..\src\ofxQuadController.cpp"> | ||
<Option virtualFolder="addons\ofxVideoMapping\" /> | ||
</Unit> | ||
<Unit filename="..\src\ofxQuadController.h"> | ||
<Option virtualFolder="addons\ofxVideoMapping\" /> | ||
</Unit> | ||
<Extensions> | ||
<code_completion /> | ||
<debugger /> | ||
<envvars /> | ||
</Extensions> | ||
</Project> | ||
</CodeBlocks_project_file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_layout_file> | ||
<ActiveTarget name="release" /> | ||
<File name="src\testApp.cpp" open="1" top="0" tabpos="2"> | ||
<Cursor position="1429" topLine="34" /> | ||
</File> | ||
<File name="src\testApp.h" open="1" top="0" tabpos="1"> | ||
<Cursor position="607" topLine="0" /> | ||
</File> | ||
<File name="..\src\homography.h" open="0" top="0" tabpos="5"> | ||
<Cursor position="0" topLine="0" /> | ||
</File> | ||
<File name="..\src\ofxQuad.cpp" open="1" top="1" tabpos="4"> | ||
<Cursor position="1289" topLine="33" /> | ||
</File> | ||
<File name="..\src\ofxQuad.h" open="1" top="0" tabpos="3"> | ||
<Cursor position="148" topLine="0" /> | ||
</File> | ||
<File name="..\src\ofxQuadController.cpp" open="0" top="0" tabpos="4"> | ||
<Cursor position="13" topLine="0" /> | ||
</File> | ||
<File name="..\src\ofxQuadController.h" open="0" top="0" tabpos="3"> | ||
<Cursor position="156" topLine="0" /> | ||
</File> | ||
</CodeBlocks_layout_file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<CodeBlocks_workspace_file> | ||
<Workspace title="Workspace"> | ||
<Project filename="ofxVideoMappingExample.cbp" active="1"> | ||
<Depends filename="..\..\..\libs\openFrameworksCompiled\project\win_cb\openFrameworksLib.cbp"/> | ||
</Project> | ||
<Project filename="..\..\..\libs\openFrameworksCompiled\project\win_cb\openFrameworksLib.cbp"/> | ||
</Workspace> | ||
</CodeBlocks_workspace_file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "ofMain.h" | ||
#include "testApp.h" | ||
#include "ofAppGlutWindow.h" | ||
|
||
//======================================================================== | ||
int main( ){ | ||
|
||
ofAppGlutWindow window; | ||
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context | ||
|
||
// this kicks off the running of my app | ||
// can be OF_WINDOW or OF_FULLSCREEN | ||
// pass in width and height too: | ||
ofRunApp( new testApp()); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#include "testApp.h" | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::setup(){ | ||
ofBackground(255,255,255); | ||
|
||
fingerMovie.loadMovie("fingers.mov"); | ||
fingerMovie.play(); | ||
|
||
quad1.setInputPoint(0, 100, 100); | ||
quad1.setInputPoint(1, fingerMovie.getWidth(), 100); | ||
quad1.setInputPoint(2, fingerMovie.getWidth(), fingerMovie.getHeight()); | ||
quad1.setInputPoint(3, 100, fingerMovie.getHeight()); | ||
|
||
quad1.setOutputPoint(0, 200, 500); | ||
quad1.setOutputPoint(1, 400, 520); | ||
quad1.setOutputPoint(2, 420, 650); | ||
quad1.setOutputPoint(3, 300, 640); | ||
|
||
quad2.setInputPoint(0, 700, 70); | ||
quad2.setInputPoint(1, 800, 70); | ||
quad2.setInputPoint(2, 800, 150); | ||
quad2.setInputPoint(3, 700, 150); | ||
|
||
quad2.setOutputPoint(0, 600, 500); | ||
quad2.setOutputPoint(1, 800, 520); | ||
quad2.setOutputPoint(2, 820, 650); | ||
quad2.setOutputPoint(3, 300, 640); | ||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::update(){ | ||
fingerMovie.idleMovie(); | ||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::draw(){ | ||
ofBackground(0); | ||
ofSetHexColor(0xffffff); | ||
|
||
fingerMovie.draw(0, 0); | ||
quad1.beginDraw(); | ||
fingerMovie.draw(0, 0); | ||
quad1.endDraw(); | ||
|
||
quad1.drawInputConfig(); | ||
quad1.drawOutputConfig(); | ||
|
||
ofSetHexColor(0x0cb0b6); | ||
ofSetPolyMode(OF_POLY_WINDING_ODD); | ||
ofBeginShape(); | ||
for (int i = 0; i < 10; i++){ | ||
ofVertex(ofRandom(650,850), ofRandom(20,200)); | ||
} | ||
ofEndShape(); | ||
|
||
quad2.beginDraw(); | ||
ofBeginShape(); | ||
for (int i = 0; i < 10; i++){ | ||
ofVertex(ofRandom(650,850), ofRandom(20,200)); | ||
} | ||
ofEndShape(); | ||
quad2.endDraw(); | ||
|
||
quad2.drawInputConfig(); | ||
quad2.drawOutputConfig(); | ||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::keyPressed(int key){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::keyReleased(int key){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::mouseMoved(int x, int y ){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::mouseDragged(int x, int y, int button){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::mousePressed(int x, int y, int button){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::mouseReleased(int x, int y, int button){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::windowResized(int w, int h){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::gotMessage(ofMessage msg){ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------- | ||
void testApp::dragEvent(ofDragInfo dragInfo){ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
#include "ofMain.h" | ||
#include "ofxQuad.h" | ||
|
||
class testApp : public ofBaseApp{ | ||
|
||
public: | ||
void setup(); | ||
void update(); | ||
void draw(); | ||
|
||
void keyPressed (int key); | ||
void keyReleased(int key); | ||
void mouseMoved(int x, int y ); | ||
void mouseDragged(int x, int y, int button); | ||
void mousePressed(int x, int y, int button); | ||
void mouseReleased(int x, int y, int button); | ||
void windowResized(int w, int h); | ||
void dragEvent(ofDragInfo dragInfo); | ||
void gotMessage(ofMessage msg); | ||
|
||
ofVideoPlayer fingerMovie; | ||
ofxQuad quad1; | ||
ofxQuad quad2; | ||
ofxQuad quad3; | ||
ofxQuad quad4; | ||
}; |
Oops, something went wrong.