diff options
Diffstat (limited to '04_playobjects/src/testApp.cpp')
| -rw-r--r-- | 04_playobjects/src/testApp.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/04_playobjects/src/testApp.cpp b/04_playobjects/src/testApp.cpp index fe26030..cfe6119 100644 --- a/04_playobjects/src/testApp.cpp +++ b/04_playobjects/src/testApp.cpp @@ -37,6 +37,10 @@ void testApp::setup() { receiver.setup(OSCPORT); drawmovies=false;drawcloud=false; + + target.setPosition(0,0,0); + camera.setPosition(0,0,-500); + camera.lookAt(target,ofVec3f(0,1,0)); } void testApp::startPlayers(int newplayer){ @@ -84,11 +88,14 @@ void testApp::draw(){ } if (drawcloud) { - //cam.begin(); - ofTranslate(ofGetWidth(), ofGetHeight()/2,0); + camera.begin(); + + ofPushMatrix(); + ofRotateY(ofGetElapsedTimef()*2.0f); + ofTranslate(0,0,-1100); players[playing].drawCloud(); - ofDrawAxis(100); - //cam.end(); + ofPopMatrix(); + camera.end(); } } @@ -100,7 +107,7 @@ void testApp::draw(){ msg += "\nclip: "+ofToString(playing); if (playing>-1) msg += "\n"+players[playing].audio; msg += "\noffset: "+ofToString(offset); - if (drawcloud>-1) msg += "\nwith cloud"; + if (drawcloud) msg += "\nwith cloud"; verdana.drawString(msg, 10, 10); } |
