241
edits
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
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. */ | ||
Line 74: | Line 74: | ||
println( theOscMessage.get(0).floatValue()); | println( theOscMessage.get(0).floatValue()); | ||
println( theOscMessage.get(1).floatValue()); | println( theOscMessage.get(1).floatValue()); | ||
println( theOscMessage.get(2).floatValue()); | println( theOscMessage.get(2).floatValue());}} | ||
} | |||
This Processing Sketch show how OSC protocol is used and how our draw function is inserted inside that protocol. | This Processing Sketch show how OSC protocol is used and how our draw function is inserted inside that protocol. | ||
First of all oscP5 and netP5 libraries are imported inside the sketch.In order to use OSC protocol we have to import those library. There are 3 messages received from Captury, they are x,y,z coordinates of the tracked person locations. | First of all oscP5 and netP5 libraries are imported inside the sketch.In order to use OSC protocol we have to import those library. There are 3 messages received from Captury, they are x,y,z coordinates of the tracked person locations. |
edits