我的TUIO 1.1捆绑代码有什么问题?

时间:2016-06-30 06:56:46

标签: python web-services unity3d

我有兴趣通过网络发送TUIO捆绑包并在Unity端接收它。 Unity不会识别捆绑包,所以我假设它有问题。

(while sent every .1 seconds)
    send_address = 'xxx.xxx.xxx.x', 3333

    # OSC basic client
    c = OSC.OSCClient()
    c.connect( send_address ) # set the address for all following messages
    bundle = OSC.OSCBundle()
    bundle.append( {'addr':"/tuio/2Dcur", 'args':["source:", "Py@Unity.com"]} ) # and some more stuff ...
    bundle.append( {'addr':"/tuio/2Dcur", 'args':["alive:", 21]} ) # and some more stuff ...
    bundle.append( {'addr':"/tuio/2Dcur", 'args':["set:", 21, 0.328125, 0.6529948115348816, 0, 0, -2.5432088375091553]} ) # and some more stuff ...
    bundle.setAddress("/tuio/2Dcur")
    c.send(bundle) # send it!

0 个答案:

没有答案