From c42c63d30a31713ffc113d6a03795d4538bd5c84 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 18 Jun 2013 18:03:31 +0100 Subject: mostly good --- 04_playobjects/src/testApp.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to '04_playobjects/src/testApp.cpp') diff --git a/04_playobjects/src/testApp.cpp b/04_playobjects/src/testApp.cpp index 6b525e1..c1850f9 100644 --- a/04_playobjects/src/testApp.cpp +++ b/04_playobjects/src/testApp.cpp @@ -33,6 +33,13 @@ void testApp::setup() { offset=0.0f; receiver.setup(OSCPORT); + + user.setUseMaskTexture(true); + user.setUsePointCloud(true); + user.setPointCloudDrawSize(2); // this is the size of the glPoint that will be drawn for the point cloud + user.setPointCloudResolution(2); // this is the step size between points for the cloud -> eg., this sets it to every second point + + drawmovies=false;drawcloud=true; } void testApp::startPlayers(int newplayer){ @@ -40,7 +47,7 @@ void testApp::startPlayers(int newplayer){ soundplayer.stop(); usleep(100000); playing=newplayer; - players[playing].play(); + players[playing].play(user); } //-------------------------------------------------------------- @@ -75,7 +82,8 @@ void testApp::draw(){ ofPushMatrix(); - players[playing].draw(); + if (drawmovies) players[playing].drawWindows(); + if (drawmovies) players[playing].drawCloud(); ofPopMatrix(); @@ -111,6 +119,12 @@ void testApp::keyPressed(int key){ case 'x': offset+=1; break; + case 'q': + drawmovies=!drawmovies; + break; + case 'w': + drawcloud=!drawcloud; + break; } if (newplaying!=playing) startPlayers(newplaying); } -- cgit v1.2.3