First, François came with a little .blend file he set up with a cube rotating randomly. We looked through the code, studied it and improved it by making it shorter and easier to duplicate. The file is available on our shared github repository and is called bge_cube_animation. The cube can be duplicated without changing the code so that all cubes will perform their own random animation.
The next project was to get the BGE to send and receive OSC messages. We looked through different python OSC libraries and studied the great example provided by Labomedia. We didn’t start studying OSC by chance. It’s a well known protocol for exchanging data between realtime visual or audio programs but it’s also what comes out of Melon (a kinect based controller) that François has been working on at Numediart.
To get it all working together, the pyOSC library had to be updated a little to handle OSC messages that were not yet implemented. The new version of the code is available on my gitorious fork (pyOSC v0.3.7), waiting to be merged with the official one.
We then rushed to finish the workshop by recording a self satisfying video of François pushing blocks around using the Kinect -> Melon -> pyOSC -> BGE set up. The file is called bge_cube_osc.blend on our Github repo.
This article was originally posted on Julien’s blog
This event was hosted at Variable, 80 rue Gallait − Schaerbeek starting at 10:00 and finishing at 18:00.