virtual chalkboard in processing

Posted by Nikolaus Gradwohl Tue, 09 Mar 2010 18:32:48 GMT

today i coded a little processing sketch that allows to make chalk like drawings

click here to give it a try

chalk-drawing

Tags  | no comments

Tweet This! submit to reddit Digg!

How To Make a 3D-Paper Model from a Heightfield in Processing

Posted by Nikolaus Gradwohl Sun, 07 Mar 2010 14:41:39 GMT

I just wrote a little processing sketch that takes a height field like this

heightfield

calculates a pdf containing something like this

example

which can be cut out and sticked together to a 3d model like this

finished model

Read more...

Tags , ,  | 2 comments

Tweet This! submit to reddit Digg!

awsome model of the solar system from 1756

Posted by Nikolaus Gradwohl Sat, 06 Mar 2010 13:17:40 GMT

on my last trip to the Natural History Museum Vienna i found a totaly awsome model of the solar system from 1756

Tags  | no comments

Tweet This! submit to reddit Digg!

Car Part Monster

Posted by Nikolaus Gradwohl Tue, 16 Feb 2010 03:57:52 GMT

a friend of mine found another monster in his garage while he was working on his car

car part monster

Tags  | no comments

Tweet This! submit to reddit Digg!

New Toy - aeh i mean Tool - i got an osciloscope

Posted by Nikolaus Gradwohl Mon, 15 Feb 2010 05:03:54 GMT

This weekend i finished soldering my Digital Oscilloscope Kit from jyetech.com

reallly, really cool new toy - aeh tool :-)

oscilloscope

Tags ,  | 1 comment

Tweet This! submit to reddit Digg!

New pencil drawings

Posted by Nikolaus Gradwohl Thu, 11 Feb 2010 00:39:00 GMT

i just added 5 new pencil drawings to my drawings gallery

Tags  | no comments

Tweet This! submit to reddit Digg!

Robo-Necklace

Posted by Nikolaus Gradwohl Mon, 08 Feb 2010 01:36:28 GMT

I designed and printed a robo necklace

robo

if you want to print one yourself, download the stl file or fetch the openscad and the dxf file. then stick on some moving eyes

it's licenced under a creative commons share alike licence

Tags , , ,  | no comments

Tweet This! submit to reddit Digg!

calling webservices from mootools, jquery or dojo

Posted by Nikolaus Gradwohl Sun, 24 Jan 2010 15:44:44 GMT

I wrote a small webservie using java6 and jax-ws. Then i wrote clients for the webservice using some some popular javascript frameworks. I used mootools, jquery and dojo for writing the clients.

I tried to use the same simple form for all the three clients to make them comparable. I also used no libraries besides the core framework classes.

click here to download the sourcecode of the clients and the java-service

Read more...

Tags , , , , ,  | 1 comment

Tweet This! submit to reddit Digg!

line detection with hough-transform

Posted by Nikolaus Gradwohl Tue, 19 Jan 2010 02:23:00 GMT

I wrote a small processing sketch to work out how linedetection using hough-transform works.

click here to see it in action and get the sourcecode. the code is not optimised for speed but for my understanding :-) so don't complain if it doesn't work on live-video.

the algorithm takes a image that has run through an edge detection algorithm and turned into a black/white image and find where things like edges or circles are by converting the pixels from imagespace to a parameterspace where such detection is much easyer.

for each pixel that is set in the source image a set of parameters that satisfy the formular r = x * cos(roh) + y * sin(roh) is calculated and r and roh are plotted as the parameterspace image

every line in the input image results in a bunch of lines in the parameterspace that have a common intersection point.

in my example i use a input image like this

input

calculate how it looks in parameter space

parameter space

and then reconstruct where the lines are

reconstruct

Tags , ,  | no comments

Tweet This! submit to reddit Digg!

Printed Processing sketch

Posted by Nikolaus Gradwohl Wed, 13 Jan 2010 05:05:04 GMT

I just printed the first stl file that i generated using a processing sketch.

I used the unlekkerlib to export a stl file from a sketch that generates simple 3d spiral, used blender to add a socket and printed it on my makerbot. Skeinforge complained about some invalid triangles, but beside that it worked surprisingly well.

This is what it looks like in blender rendered

and this is what the makerbot made of it printed

and this is the processing-sketch i used to generated the spiral

import unlekker.data.*;

void setup() {
  size(300,300,P3D);
  noLoop();
}

void draw() {
  translate(width/2,height/2);
  background(0);
  fill(255);
  lights();
  noStroke();
  //stroke(255);
  beginRaw("unlekker.data.STL","guru.stl");
  beginShape(QUAD_STRIP);
  for( int i =0; i < 100; i++ ) {
    for(int a=0; a < 36; a++) {
      float r = 10 - map(i,0,100,0,10);
      vertex( r * sin( radians( a * 10 )) + sin(radians(i*10)) * 10, 
              -i*1, 
              r * cos(radians(a*10)) + cos(radians(i*10)) * 10);

      int j = i+1;
      vertex( r * sin( radians( a * 10 )) + sin(radians(j*10)) * 10, 
              -j*1, 
              r * cos(radians(a*10)) + cos(radians(j*10)) * 10);
    }
  }
  endShape();
  endRaw();
}

Tags , ,  | no comments

Tweet This! submit to reddit Digg!

Older posts: 1 2 3 ... 20