9^3 cubes

Nikolaus Gradwohl2012-05-25T04:51:08+00:00

The cubes and the animation keyframes were generated using a python script

you can download the blend file here

cubes

read more ...

blender labyrinth generator

Nikolaus Gradwohl2012-05-21T05:08:35+00:00

I ported my labyrinth generator from processing to a blender python script

you can download the blend file here

labyrinth

read more ...

flying through the menger-sponge

Nikolaus Gradwohl2012-05-02T06:12:36+00:00

This is a flight throught a level 4 Menger Sponge. I generated the fractal using a pyhton script.

The blend file is very big so I don't link it here directly. You can regenerate it very easy by opening a text-editor in blender and running the python script below the image.

Menger sponge

read more ...

Arduino based Office-WTF-Counter

Nikolaus Gradwohl2009-07-03T08:37:00+00:00

As in any office, my co-workers and I experience several WTF-Situations during our working day. So we decided to implement a simple system to count the WTF's and use them as a metric for our working climate :-)

we use an "emergency stop"-Button which is connected to an arduino. This arduino sends the string "WTF" on the serial line a little python scrip writes them to a file, another processing app count's the lines in the file and offers the result via http, which is read by a processing app for visualisation ...

wtf-button

wtf-arduino

read more ...

rotated text in reportlabs

Nikolaus Gradwohl2009-04-09T10:09:00+00:00

if you want to make a great chart like the one below in reportlab, you need rotated text. it isn't very complicated - its just a bit hard to find som examples on the net.

the canvas in reportlab has a saveState and a restoreState method, and supports rotate and translate similar to openGL or processing. see the code example below who it is done.

chart with rotated lables

read more ...

using the BlenderGameEngine as OSC client

Nikolaus Gradwohl2009-03-08T15:18:00+00:00

i just managed to use the GameEngine of blender as a client for OSC events :-)

now i can change the color of a cube by sending osc events from my pd-patch or the ruby-script i wrote for my openframeworks-demo

bge-cube.png

the blend file can be downloaded here

the blend file needs OSC.py by Daniel W. Holth to be in the python searchpath, so either copy it to location you start blender form or copy it to your site-package folder (obviously i'm not the only one who had the idea of using this lib with the blender game engine :-] )

read more ...

very simple OSC debug tool

Nikolaus Gradwohl2009-03-06T08:09:00+00:00

when playing with OSC and i'm not quite sure what osc messages get send by an application i use a little python script which uses the simple OSC api

import osc
osc.init()
osc.listen( "127.0.0.1", 1234 )

in fact it misuses the library ;-)

every time a message is received that isn't bound by a callback function (which is all messages, since we dont bind anything here ), the listener prints a waring containing the address, the format and the value of the message

read more ...

What's new in Python 3.0

Nikolaus Gradwohl2009-02-09T18:48:00+00:00

i have played a bit with python3.0 and this are the things that catched my eye:

  • the new print syntax
  • the exception-handling
  • decorators
  • the new io module
  • classes in python

are no complete list of changes between 2.5 and 3.0 - and don't want to be. they are just a list of thing's i noticed. Some of them are already present in python 2.6 but i newver used that release - so i don't realy know.

read more ...

flying with python3.0

Nikolaus Gradwohl2009-01-16T18:48:00+00:00

I recently installed python3. While scanning through the module directory a package named "antigravity" catched my eye.

when i typed "import antigravity" python opend a browser-window with this link

i really like python - and xkcd :-)

read more ...

Disco

Nikolaus Gradwohl2008-09-22T07:45:00+00:00

I recently read about disco a implementation of the map-reduce algorithm using erlang for the master node and the workload management and python for the map-reduce jobs. Its realy funny that the nokia research labs implemented an algorithm introduced by google using a language developed by erricsson :-)

its a bit complicated to install, but once running its realy fun to code with

read more ...