Curling Animation II
I made another animation with Context Free Art and a small ruby script. The scroll down to see the sourcecode I have used for this file. This animation uses the same technique i used for my first one
Curling Recursion 2 from Nikolaus Gradwohl on Vimeo.
read more ...Part of a Rainbow
Sometimes rainbows try to hide behind the clouds
hand drawn stop motion very-short-film
This are very small pencil doodles i made while waiting that the "percusion-drill-in-concrete"-sounds in my flat go away. I then turned them into an short movie. and - tataaaa! - here it is
tataaaa! from Nikolaus Gradwohl on Vimeo.
read more ...Spool Holder printed on Makerbot
I have some spools with cables lying around on my working desk. so i printed 2 spool holders on my makerbot to tidy things up a bit.
downlaod the openscad file or the stl file to print them.
OpenFrameworks boid demo
I made a small boids demo in openframeworks. It is more or less a port of the boids demo i made in processing a while ago.
It's bin a while since i wrote c++ the last time, so i'm pretty sure i have forgotten to free some memory or have done something very unc++y :-)
Calling R from Processing
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.
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 ...little 3D figure
My boss asked me to clone myself several times, so i started by making a little 3d figure in blender and printed it on my Makerbot. Not quite a clone of me, but every journey begins with a first step :-)
click here to download the stl file
raining processing sketch
My latests simple but useless processing sketch was inspired by the weather we had last week :-/
click here to see it in action
how to use the mousewheel in processing
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.
read more ...