241
edits
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
//size(800, 600); | //size(800, 600); | ||
oscP5 = new OscP5(this, 1065); | oscP5 = new OscP5(this, 1065); | ||
myRemoteLocation = new NetAddress("141.54.159.160", 1065); // our computer... | 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 51: | Line 50: | ||
//most of the placeholders can be replaced by a "*" for "everything" | //most of the placeholders can be replaced by a "*" for "everything" | ||
// unfortunately, if you subscribe to too many things, a bug in the captury will lead to malformed OSC-bundles that in turn crash OSCP5 | // unfortunately, if you subscribe to too many things, a bug in the captury will lead to malformed OSC-bundles that in turn crash OSCP5 | ||
OscMessage myMessage = new OscMessage("/subscribe/*/blender/Head/vector"); // get positions ("vector") of all joints of actor "felix_braun_rot" in mm | OscMessage myMessage = new OscMessage("/subscribe/*/blender/Head/vector"); // get positions ("vector") of all joints of actor "felix_braun_rot" in mm | ||
oscP5.send(myMessage, myRemoteLocation); | oscP5.send(myMessage, myRemoteLocation);} | ||
} | |||
strokeWeight(4); | strokeWeight(4); |
edits