241
edits
(→TOOLS) |
No edit summary |
||
Line 30: | Line 30: | ||
communication between Captury System and Processing. <br> | communication between Captury System and Processing. <br> | ||
For more information about OSC protocol you can check website [http://http://www.sojamo.de/libraries/oscP5/ OSC communication] | For more information about OSC protocol you can check website [http://http://www.sojamo.de/libraries/oscP5/ OSC communication] <br> | ||
import oscP5.*; | import oscP5.*; | ||
import netP5.*; | import netP5.*; | ||
OscP5 oscP5; | OscP5 oscP5; | ||
NetAddress myRemoteLocation; // IP of Computer running captury, Port configured in software | NetAddress myRemoteLocation; // IP of Computer running captury, Port configured in software | ||
long lastMillis=0; // used to periodically send subscribe messages | long lastMillis=0; // used to periodically send subscribe messages | ||
ArrayList <PVector> joints=new ArrayList <PVector>(); // used to buffer joint positions between oscEvent callbacks and "draw" calls | ArrayList <PVector> joints=new ArrayList <PVector>(); // used to buffer joint positions between oscEvent callbacks and "draw" calls | ||
void setup() { | void setup() { | ||
fullScreen(); | fullScreen(); |
edits