Blender bpy/bge Brussels workshop #4


So, François and I are organizing monthly Blender workshops at Constant Variable where we play around with python code and the Blender Game Engine (BGE). The point of these meetings is to get together and exchange ideas and experience around the use of code and 3D realtime rendering with open source software. Last meeting was this friday and here’s a quick explanation of what was achieved.

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 also available on our Github repo. (See bge_cube_osc.blend in user/frankiezafe/ directory)

Next meeting will be in a month or so and announced on Constant and Blender Brussels Meetup websites. Feel free to join us.

Blender Brussels Workshop – 21/12/2012

So we had our second Blender Brussels workshop today. The first one happened about a month ago. This time, we spent the day at Constant Variable and talked about the basics of python and its use within Blender. We worked on scripts to generate random meshes and then manipulate them in the game engine.

Here’s a short video of what the output might look like.

If you want to play with the file, download it here. You’re also welcome to join us on the next round, in january 2013. The exact date will be announced later.

Blender python friendly workshop

Frankie Zafe asked me to give him an introduction to Blender and Python. So we met at my appartment this friday and he had the great idea to bring two of his friends to this improvised workshop. We went through the basics of python and Blender in the morning, then hacked on some scripts in Blender in the afternoon with the intent of generating random meshes with the software. The picture above is the result of Frankie’s work. Go see some more here.

We’ve decided to renew this experience next (maybe every) month. But I wanted to open up invitations. So if you’d like to join us and play around with python code in the Blender environment, feel free to drop a mail or comment and I’ll send you the invitation. (Ho, we are Brussels based in case you didn’t know).