241
edits
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
While Captury is tracking people in order to create visualization inside Processing OSC protocol is used to have <br> | While Captury is tracking people in order to create visualization inside Processing OSC protocol is used to have <br> | ||
communication between Captury System and Processing. <br> | communication between Captury System and Processing. <br> | ||
import oscP5.*; | import oscP5.*; | ||
import netP5.*; | import netP5.*; | ||
Line 39: | Line 40: | ||
void setup() { | void setup() { | ||
fullScreen(); | |||
//size(800, 600); | |||
oscP5 = new OscP5(this, 1065); | |||
myRemoteLocation = new NetAddress("141.54.159.160", 1065); // our computer...} | |||
void draw() { | void draw() { | ||
// periodically ask the captury server to send us data. | // periodically ask the captury server to send us data. | ||
Line 62: | Line 63: | ||
//draw everything here | //draw everything here | ||
point(joints.get(i).x/5+width/2, joints.get(i).y/5+height/2); | point(joints.get(i).x/5+width/2, joints.get(i).y/5+height/2); | ||
line(random(600), random(600), joints.get(i).x/5+width/2, joints.get(i).y/5+height/2); | line(random(600), random(600), joints.get(i).x/5+width/2, joints.get(i).y/5+height/2);} | ||
} | joints.clear();} | ||
joints.clear(); | |||
} | |||
/* incoming osc message are forwarded to the oscEvent method. */ | /* incoming osc message are forwarded to the oscEvent method. */ |
edits