Skip to content

Commit

Permalink
tunnel for print added
Browse files Browse the repository at this point in the history
  • Loading branch information
James George committed Apr 24, 2016
1 parent e609fea commit 78398a0
Show file tree
Hide file tree
Showing 12 changed files with 741 additions and 5 deletions.
2 changes: 0 additions & 2 deletions CloudsHUDDesigner/CloudsHUDDesigner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,6 @@
OTHER_LDFLAGS = "$(OF_CORE_LIBS)";
PREBINDING = NO;
PRODUCT_NAME = CloudsHUDDesignerDebug;
SDKROOT = macosx10.9;
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand Down Expand Up @@ -2303,7 +2302,6 @@
OTHER_LDFLAGS = "$(OF_CORE_LIBS)";
PREBINDING = NO;
PRODUCT_NAME = CloudsHUDDesigner;
SDKROOT = macosx10.9;
WRAPPER_EXTENSION = app;
};
name = Release;
Expand Down
2 changes: 2 additions & 0 deletions CloudsLinker/CloudsLinker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,7 @@
/Users/focus/Documents/Xcode/of_64_clouds/openFrameworks/apps/CLOUDS/CloudsLibrary/src/Sound/RTCMix/libs/lib/osx64,
);
PRODUCT_NAME = CloudsLinkerDebug;
SDKROOT = macosx10.11;
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand Down Expand Up @@ -1871,6 +1872,7 @@
/Users/focus/Documents/Xcode/of_64_clouds/openFrameworks/addons/ofxFTGL/libs/FTGL/lib/vs64,
);
PRODUCT_NAME = CloudsLinker;
SDKROOT = macosx10.11;
WRAPPER_EXTENSION = app;
};
name = Release;
Expand Down
9 changes: 9 additions & 0 deletions TunnelForPrint/Project.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
OF_PATH = ../../..

//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"

OTHER_LDFLAGS = $(OF_CORE_LIBS)
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
15 changes: 15 additions & 0 deletions TunnelForPrint/bin/data/shaders/line_animate.frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#version 120

uniform float percent;
varying float normPos;

float map(float value, float inputMin, float inputMax, float outputMin, float outputMax) {;
return ((value - inputMin) / (inputMax - inputMin) * (outputMax - outputMin) + outputMin);
}

void main() {
// if(percent < normPos){
// discard;
// }
gl_FragColor = vec4( vec3( 1.- map(normPos, percent-.01, percent+.01, 0., 1.0)) , 1.0);
}
16 changes: 16 additions & 0 deletions TunnelForPrint/bin/data/shaders/line_animate.vert
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@



uniform float percent;
varying float normPos;

void main(void)
{
vec4 pos = gl_Vertex;
gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * pos;
gl_FrontColor = gl_Color;

normPos = gl_Normal.x;


}
582 changes: 582 additions & 0 deletions TunnelForPrint/emptyExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions TunnelForPrint/openFrameworks-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.openFrameworks</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
7 changes: 7 additions & 0 deletions TunnelForPrint/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "testApp.h"

//--------------------------------------------------------------
int main(){
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new testApp()); // start the app
}
62 changes: 62 additions & 0 deletions TunnelForPrint/src/testApp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#include "testApp.h"

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



}

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

}

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

}

//--------------------------------------------------------------
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){

}
21 changes: 21 additions & 0 deletions TunnelForPrint/src/testApp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#pragma once

#include "ofMain.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);

};
4 changes: 2 additions & 2 deletions VSIntro/CloudsIntro64.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@
"-lpthread",
"-mtune=native",
);
SDKROOT = macosx10.8;
SDKROOT = macosx10.11;
};
name = Debug;
};
Expand Down Expand Up @@ -2460,7 +2460,7 @@
"-lpthread",
"-mtune=native",
);
SDKROOT = macosx10.8;
SDKROOT = macosx10.11;
};
name = Release;
};
Expand Down
6 changes: 5 additions & 1 deletion VSIntro/src/testApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ void testApp::setup(){
ofBackground(0);

ofSetVerticalSync(true);

ofSetEscapeQuitsApp(false);

//////////////SHOW INTRO
parser.loadFromFiles();
vector<CloudsClip*> startingNodes = parser.getClipsWithKeyword("#start");
Expand Down Expand Up @@ -91,6 +92,9 @@ void testApp::keyPressed(int key){
else if(key == 'S'){
ofShowCursor();
}
if(key == '.'){
ofSetWindowShape(800, 800);
}
}

//--------------------------------------------------------------
Expand Down

0 comments on commit 78398a0

Please sign in to comment.