Generating Labyrinths in Processing

Nikolaus Gradwohl2011-04-23T15:33:23+00:00

I wrote a processing-sketch that generates labyrinths. It uses a simple recursive algorithm described here to generate the maze.

The + and - keys can be used to change the maze-size, any other key generates a new maze.

click here to generate some labyrinths or get the source-code

maze

read more ...

Sparkles with processing

Nikolaus Gradwohl2011-04-14T06:57:25+00:00

I made a processing sketch that generates a trail of sparkles that follow the mouse pointer.

Click here to run the skecht or download the code. Press the mousebutton and drag the mouse around to generate a particle-trail. Press 'g' to toggle gravity

sparkles

read more ...

Inverted Rendering

Nikolaus Gradwohl2011-04-11T17:10:00+00:00

I made a short animation in processing that renders some spheres and then inverts the frame.

Click here to run the applet or download the source

invert

read more ...

Getting Started with the VideoGameShield

Nikolaus Gradwohl2011-03-24T20:19:32+00:00

The VideoGameShield from Wayne&Layne is a arduino-shield that allows you to write videogames that run on your TV using an arduino and a Wii-Nunchuck or Classic Game Controller.

This is a short tutorial that helps you on your first steps after you have solderd your kit following these instructions.

VideoGameShield

VGS Hello World

To draw on the screen the VGS uses the TVout library. In this example I use a Nunchuck as controller. first we include all the libraries that are needet to use TVout and Nunchuck

#include <TVout.h>
#include <fontALL.h>
#include <i2cmaster.h>
#include <nunchuck.h>

then we define the structures we need to access the libraries

Nunchuck n;
TVout TV;
read more ...

leopard pencil drawing

Nikolaus Gradwohl2011-03-19T15:12:14+00:00

Permission to Smile

Nikolaus Gradwohl2011-03-10T02:39:51+00:00

permission to smile

print it, send it aroud or distribute it otherwise! grant the permission to smile to others too :-)

read more ...

Litte Pictureframe is Watching You

Nikolaus Gradwohl2011-03-06T04:46:00+00:00

I found a cheap digital picture frame at a local electronics store a while ago and searched a project for it. So i installed 60 jpegs with eyes looking in different directions on the pictureframe and started an endless slideshow. Now the picture frame sits on his shelf and is carefully watching whats going on in our livingroom.

little picture frame

To generate the eyes I wrote a short processing sketch that generates a new frame every time a key is pressed and saves it in the sketchfolder.

void setup() {
  size(768,480,P2D);
  smooth();
}

float d = random(360);


void draw() {
  background(0);
  fill(255);
  ellipse(284, 240, 200, 400);
  ellipse(484, 240, 200, 400);
  fill(0);


  float da = d;
  float db = d;

  float a = radians( da );
  float b = radians( db );

  ellipse(284 + cos(a) * 60, 240 + sin(a)*160, 80, 80);
  ellipse(484 + cos(b) * 60, 240 + sin(b)*160, 80, 80);
}

void keyPressed() {
  d = random(360);
  redraw();
  saveFrame();
}

eyes.zip contains the set of imags I use on my pictureframe

read more ...

some more new monsters

Nikolaus Gradwohl2011-03-03T14:19:27+00:00

I found some new monsters this week

read more ...

how to make a tentacle using processing and toxiclibs

Nikolaus Gradwohl2011-02-23T03:34:29+00:00

the Toxiclibs are a very interesting collection of processing libraries. One of the libraries is called volumeutils and allows to use a volumetric space to model a 3D object.

I used it to generate a tentacle and export it as a stl file to make it printable on my 3D-printer.

click here to see it live or download the source-code

tentacle tentacle 3D printed

In the setup method i define a volumetric space containing 100x100x100 voxel, a iso surface and a Triangle mesh (which is needed to display the object and export it later)

gfx = new ToxiclibsSupport(this);
VolumetricSpace volume = new VolumetricSpaceArray( new Vec3D(100,200,100), 100, 100, 100 );
IsoSurface surface = new ArrayIsoSurface( volume );
mesh = new TriangleMesh();
read more ...

Parametric Button Generator

Nikolaus Gradwohl2011-02-20T15:22:54+00:00

Have you ever lost a button? One that is unique and cannot be found anywere? Do you want to sew something special and need very special buttons?

And do you own a 3D-Printer?

Then there is a solution to your problems - The Parametric-Button-Generator!

Download the openscad file, adjust the parameters and print your buttons

example button example button example button

read more ...