Fork me on GitHub

BoxFitting algorithm

Posted on: 09-17-11 | By: David | In: Blog | Comments: RSS 2.0

I recently discovered http://www.complexification.net a nice site with tons of awesome computational art and much creative input. The one I liked the most (mainly because of its simplicity) was the gallery based on the box.fitting algorithm (http://www.complexification.net/gallery/machines/boxFitting/) Basically the algorithm works by the following steps (at least thats what i thought how it could work):
  • seed boxes with a small initial size on random 2D positions
  • scale them up untill they intersect each other
  • (additionally!), if you use a background image, get the average color of the image part each box overlays and tint it
  • seed more boxes and loop all over again until the maximum amount of boxes is reached
I wrote my own demo to this idea in processing (http://processing.org). Demo: Download

Read more

Pc talking to my Nikon D40

Posted on: 11-26-09 | By: David | In: Blog | Comments: RSS 2.0

I was working lately on a simple peace of program to control my Nikon D40 by a PC. This little app communicates through my Arduino board with the camera. To get my d40 to capture something I used a bit of code from Gustav von Roth which can be found here. This Code sends a signal over an IR Led to generate time lapse effects. An example is shown below.

Read more