Retro-3D-Neon-LineGrid in processing

Posted by Nikolaus Gradwohl Thu, 02 Sep 2010 04:07:21 GMT

I made some aimated neon 3d linegrid in processing, very retro-style.

It uses no openGL - only lines, just as i would have coded it in Basic on my Atari :-)

click here to see it!

retro 3d neon linegrid

Tags , ,  | no comments

Tweet This! submit to reddit Digg!

Calling R from Processing

Posted by Nikolaus Gradwohl Tue, 10 Aug 2010 18:31:01 GMT

Processing is a simple and powerfull programming language to create images, animation and interaction.

R is a powerfull free software environment for statistical computing.

For me this sounds like a perfect match. This is a short howto that shows how these two languages can comunicate with each other.

On the R-Side I use the Rserve extension, which can be installed by calling

install.packages("Rserve")

from within the R environment.

By calling

library(Rserve)
Rserve()

from within the R, you can start a serverprocess that accepts commands on a network socket and can be used by a javaclient to execute R commands.

procesing2r

In the processing sketch we need to add the two jar files of the javaclient that can be downloaded at the Rserve download page http://www.rforge.net/Rserve/files/

just add the jar files to the sketch using "Add file ..." from the "Sketch"-Menu.

Now we can use the REngine class to execute some R code in the server process and ask R to return the calculated data

Read more...

Tags , ,  | no comments

Tweet This! submit to reddit Digg!

raining processing sketch

Posted by Nikolaus Gradwohl Sun, 08 Aug 2010 14:57:27 GMT

My latests simple but useless processing sketch was inspired by the weather we had last week :-/

click here to see it in action

rain

Tags  | no comments

Tweet This! submit to reddit Digg!

how to use the mousewheel in processing

Posted by Nikolaus Gradwohl Sun, 01 Aug 2010 18:16:38 GMT

Mouse-events like move, drag or click are very simple to implement in processing. Only the mouse-wheel needs some special handling.

To get the mouseWheel events in processing the sketch needs to register a mouseWheelListener int the setup method

void setup() {
  size(300,300);
  smooth();
  addMouseWheelListener(new java.awt.event.MouseWheelListener() { 
    public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) { 
      mouseWheel(evt.getWheelRotation());
  }}); 
}

and then a handler function that gets called by the listener every time the mousewheel is triggered

void mouseWheel(int delta) {
}

The value of delta indicates the direction and the speed by which that scroll-wheel has been turned.

Click here to see an applet that implements the callback function and zooms some rects.

Tags  | no comments

Tweet This! submit to reddit Digg!

How to make fireworks, fountains, etc in processing

Posted by Nikolaus Gradwohl Fri, 02 Jul 2010 03:57:00 GMT

Particle effects look very fancy but are actually very easy to implement in processing. This is a small tutoral that shows how. The particle effect implemented here is 2-Dimentional but the same principles can be applied to a 3D version.

particles

Read more...

Tags ,  | 2 comments

Tweet This! submit to reddit Digg!

Day 30 of 30daysofcreativity

Posted by Nikolaus Gradwohl Thu, 01 Jul 2010 16:10:00 GMT

My Day 30 Project for 30daysofcreativity is a little processing firework

click here to see it in action

Day 30

Tags ,  | no comments

Tweet This! submit to reddit Digg!

Processing SpaceShooter ported to Processing.js

Posted by Nikolaus Gradwohl Tue, 29 Jun 2010 17:45:00 GMT

I just proted the example programm from my processing tutorial to processing.js. I only had to remove the private keywords from my classes and change tiny bits here and there. But i was really surprised how well everything went

click here to give it a try

tutorial

Tags , , ,  | no comments

Tweet This! submit to reddit Digg!

dropshadow in processing

Posted by Nikolaus Gradwohl Tue, 29 Jun 2010 03:16:00 GMT

I made a little "workflow"-diagram, that draws boxes with a little dropshadow. I do this by calling a paint method that does all the drawing. Then I apply a blur filter and shift the whole image slightly to the upper right. Then the paint method is called again, and draws the boxes, arrows, and text entries.

click here to run the applet and download the sourcecode.

shadow

Tags ,  | no comments

Tweet This! submit to reddit Digg!

Custom Cookie Cutters for the Makerbot

Posted by Nikolaus Gradwohl Sun, 27 Jun 2010 17:34:00 GMT

Recently some very awsome cookiecutter-designs started to show up on thingiverse (like the escher cookie cutter or the jigsaw cookie cutter, and many more) (and one of the local radiostations has played "last cristmas", because it's only 6 months till x-mas O_o )

So i thought about how the generation of such custom cookie cutters could be simplified and i developed a custom cookie cutter generator in processing.

Click here to download the processing sketch.

Basically it's a very very simple vector graphic programm, where you can design the cookie form you want to have. to export the design as a stl file press the letter 'e'

this is my day 26 project for 30daysofcreativity

This is what the cookie-cutter-editor looks like

cookie-cutter-generator

This is what the generated stl file looks like

cookie-cutter in blender

And this is what the printed cookie-cutter looks like (still have to fiddle around with my skeinforge settings a bit)

cookie-cutter

Tags , , , , ,  | no comments

Tweet This! submit to reddit Digg!

Processing aquarium

Posted by Nikolaus Gradwohl Wed, 23 Jun 2010 15:03:00 GMT

This is a little aquarium i made, using an image my daughter has drawn. So the creds for the artwork go to mona, i did just the coding

this is my/our Day 23 Project for 30daysofcreativity

click here to see it in action

aquarium

Tags ,  | no comments

Tweet This! submit to reddit Digg!

Older posts: 1 2 3 ... 10