summaryrefslogtreecommitdiff
path: root/06_performance/src/testApp.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-06-25 01:28:53 +0100
committerComment <tim@gray.(none)>2013-06-25 01:28:53 +0100
commit6c5c2bfefe583c682a5ec1e6704b64c962a5a1c9 (patch)
tree2e30a7e0837dae2fa502423b21509ae50a3dc107 /06_performance/src/testApp.cpp
parent11229ede83c48fab01e6e566155536b5e7e9d762 (diff)
good craic
Diffstat (limited to '06_performance/src/testApp.cpp')
-rw-r--r--06_performance/src/testApp.cpp66
1 files changed, 62 insertions, 4 deletions
diff --git a/06_performance/src/testApp.cpp b/06_performance/src/testApp.cpp
index 746d52f..db45680 100644
--- a/06_performance/src/testApp.cpp
+++ b/06_performance/src/testApp.cpp
@@ -17,11 +17,11 @@ void testApp::setup(){
midiIn.listPorts();
- midiIn.openPort(0); //this was 1 on linux, 0 on OSX
+ midiIn.openPort(1); //this was 1 on linux, 0 on OSX
midiIn.addListener(this);
midiOut.listPorts();
- midiOut.openPort(0); //this was 1 on linux, 0 on OSX
+ midiOut.openPort(1); //this was 1 on linux, 0 on OSX
// 0 output channeLs,
// 2 input channels
@@ -101,7 +101,7 @@ void testApp::setup(){
F_zRotation=0;
F_particleAmount=2000; //100
- F_particleLife=1.5; //0.5
+ F_particleLife=0.75; //0.5
I_fade1=0;
I_fade2=0;
@@ -170,6 +170,10 @@ void testApp::setup(){
}
xOffs=startX=yOffs=startY=0;
+ xModel=0;
+ yModel=0;
+ zModel=-400;
+ sModel=1.0f;
};
@@ -248,6 +252,7 @@ void testApp::update(){
xOffs*=.95;
yOffs*=.95;
+
}
//--------------------------------------------------------------
@@ -413,7 +418,11 @@ void testApp::draw(){
}
ofPushMatrix();
- ofTranslate(0,-100,-1050);
+ //ofTranslate(0,-100,-1050);
+ ofScale(sModel,sModel,sModel);
+ //ofTranslate(xModel*sModel,yModel*sModel,zModel*sModel);
+ ofTranslate(xModel,yModel,zModel);
+
//narrator.drawCloud(2);
narrator.drawPoints(F_lineWidth,F_particleAmount,F_particleLife,F_particleX,F_particleY,F_particleZ);
ofPopMatrix();
@@ -552,6 +561,7 @@ void testApp::draw(){
msg+="\n"+ofToString(F_xRotation, 4)+" "+ofToString(F_yRotation, 4)+" "+ofToString(F_zRotation, 4);
msg+="\n"+ofToString(F_yseg, 4);
msg+="\n"+ofToString(narrator.getNumParticles())+" size "+ofToString(F_lineWidth);
+ msg+="\n"+ofToString(xModel)+","+ofToString(yModel)+","+ofToString(zModel)+" * "+ofToString(sModel);
ofDrawBitmapString(msg,20,20);
}
}
@@ -584,6 +594,54 @@ void testApp::keyPressed (int key){
}
}
}
+ if(key == 'r'){
+ yModel+=25;
+ }
+ if(key == 'v'){
+ yModel-=25;
+ }
+ if(key == 'd'){
+ xModel+=25;
+ }
+ if(key == 'g'){
+ xModel-=25;
+ }
+ if(key == 't'){
+ zModel+=25;
+ }
+ if(key == 'c'){
+ zModel-=25;
+ }
+ if(key == 'y'){
+ sModel*=1.02;
+ }
+ if(key == 'h'){
+ sModel/=1.02;
+ }
+ if(key == 'h'){
+ F_particleX-=1;
+ }
+ if(key == 'k'){
+
+ F_particleX+=1;
+ }
+ if(key == 'm'){
+ F_particleY-=1;
+ }
+ if(key == 'u'){
+
+ F_particleY+=1;
+ }
+ if(key == 'i'){
+ F_particleZ+=1;
+ }
+ if(key == 'n'){
+
+ F_particleZ-=1;
+ }
+ float F_particleX;
+ float F_particleY;
+ float F_particleZ;
}