{"id":261,"date":"2011-03-04T14:35:15","date_gmt":"2011-03-04T14:35:15","guid":{"rendered":"http:\/\/www.funkboxing.com\/wordpress\/?p=261"},"modified":"2021-01-03T18:14:56","modified_gmt":"2021-01-03T18:14:56","slug":"physics-and-algorithm-based-animation-update","status":"publish","type":"post","link":"http:\/\/funkboxing.com\/wordpress\/?p=261","title":{"rendered":"Physics and Algorithm Based Animation &#8211; UPDATE"},"content":{"rendered":"<p>I got a little done on the OSC implementation for Cartwheel-3D but I probably wont be able to go much further for awhile so I thought I&#8217;d post what I had.<\/p>\n<p>In the cartwheel source there is a file<br \/>\n\\PythonAppSNMApp.py that runs the main animation loop. I edited it to send OSC messages for each joint. To do this I used the pyOSC module and parked it in the same directory for convenience.<br \/>\nThe whole thing runs super slow through the py-interpreter. I tried to compile it with py2exe but ran into some trouble. However, I found that I could cheat and use the provided binaries.<br \/>\nTake the modified SNMApp.pyc (and OSC.pyc) and copy them into the \\binlibrary.zip file in the binaries. It just works.<\/p>\n<p>Here&#8217;s my modified <a href=\"http:\/\/www.funkboxing.com\/wordpress\/wp-content\/_postfiles\/SNMApp.txt\">SNMApp.py<\/a> &#8211; the pyOSC module can be found <a href=\"https:\/\/trac.v2.nl\/wiki\/pyOSC\">here<\/a><\/p>\n<p>Blender uses Python 3 so I had to use a different OSC module <a href=\"http:\/\/docs.ryancoyner.com\/python-osc\/releases\/0.1\/\">here<\/a>. I just parked it in the same directory as blender.exe &#8211; also for convenience.<\/p>\n<p>and here is a <a href=\"http:\/\/www.funkboxing.com\/wordpress\/wp-content\/_postfiles\/testOSCserver.blend\">.blend<\/a> file with my OSC listener code in it. I got it to work with the bge and the animation system, but not cleanly.<\/p>\n<p>If you have any success with this let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a little done on the OSC implementation for Cartwheel-3D but I probably wont be able to go much further for awhile so I thought I&#8217;d post what I had. In the cartwheel source there is a file \\PythonAppSNMApp.py that runs the main animation loop. I edited it to send OSC messages for each <a href='http:\/\/funkboxing.com\/wordpress\/?p=261' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,5,47],"tags":[28],"_links":{"self":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/261"}],"collection":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=261"}],"version-history":[{"count":1,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":2635,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/261\/revisions\/2635"}],"wp:attachment":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}