129
edits
| Line 45: | Line 45: | ||
| String bone1 = "Root";  //The bone in use   | String bone1 = "Root";  //The bone in use   | ||
| </source> | </source> | ||
| 动捕系统截图圈出名称 | |||
| *Incoming OSC messages are forwarded to the oscEvent method. Print the Address Pattern and the Typetag of the received OSC messages in the console. | *Incoming OSC messages are forwarded to the oscEvent method. Print the Address Pattern and the Typetag of the received OSC messages in the console. | ||
| Line 59: | Line 59: | ||
| } | } | ||
| </source> | </source> | ||
| 本地接收信息框截图 | |||
| *To make sure that all the  | *To make sure that all the bones in use are available and refresh them every second or so. | ||
| <source lang="Java" line start= "58"> | <source lang="Java" line start= "58"> | ||
| void refreshSubscriptions() { | void refreshSubscriptions() { | ||
| Line 75: | Line 76: | ||
| <source lang="Java" line start= "103"> | <source lang="Java" line start= "103"> | ||
| void subscribeBone(String skeletonId, String bone) { | void subscribeBone(String skeletonId, String bone) { | ||
|    OscMessage msg = new OscMessage("/subscribe/" + skeletonId + "/blender/" + bone + "/vector"); |    OscMessage msg = new OscMessage("/subscribe/" + skeletonId + "/blender/" + bone + "/vector");  //Create OSC message | ||
|    msg.add(50.0); |    msg.add(50.0);  //Add a float to the OSC message | ||
|    msg.add(0.0); |    msg.add(0.0); | ||
|    msg.add(100.0); |    msg.add(100.0); | ||
|    osc.send(msg, remote); |    osc.send(msg, remote);  //Send the message | ||
| } | } | ||
| </source> | </source> | ||
| 动捕系统接收信息截图 | |||
| '''PART 03 – Pass data to the object''' | '''PART 03 – Pass data to the object''' | ||
edits