Austria
http://www.flickr.com/photos/flisp3...
member since September 19, 2010
profile picture

portfolio of
Gerd Platl

Sketch Starter

Start a sketch by clicking on a sketch thumbnail...

Magnetic Field v1.1

Place your magnetic sticks and see the magnetic field lines and forces under them...

commands:
r reset all magnets
a add magnet
d delete magnet
c toggle colors
v toggle vectors
s save picture 'PG_Magnetic.png'

GLSL demos v1.1

This sketch is a try to run a GLSL (OpenGL Shading Language) program as processing sketch without making great changes of GLSL code within the GLSL main() function.

Sand trickle down

Sand trickle down over famous faces.
Move mouse up and down to change verticle sand speed.

Creature Aquarium v1.1

A simulation of interacting sea creatures.
Select creature by pressing top line bottons.
Press button at bottom to toggle menu.
Press i to see detailed creature informations,
+/- add or delete current creature,
p,n to toggle pause and show next picture
r for restart
s to save picture

TestSTLwriter v1.1

You can save a colored 3-dimensional triangle mesh as a STL file by using the STLWriter class.

DLA 3D - Diffusion Limited Aggregation
- v1.1

A Diffusion Limited Aggregation 3D Simulator
with the algorithm of Cook / Neumann.
Press <blanc> to change random position limitation (sphere, cube, sphere surface, ellipsoid).
Looks better offline running with processing >= 2.0!

Processing2 Info v1.2

Processing is going more and more complex.
Therefore here a sketch to display some helpful diagrams...

SharkAttack3d

A flocking simulation with many fishes and some sharks.
You can run this sketch only offline with processing v2.1 (JavaScript has troubles to load 3d object files), but after downloading and starting it's fascinating do watch to the hunted fishes...

Parametric Surface Viewer V1

Parametric Surface Viewer V1.
View parametric surface defined by P(x,y,z) = f(u,v)
key commands:
0..n select surface
' ' next surface
<BS> previous surface
F1, h change help level & see more commands...

note: download and run with openprocessing v2.0 to get a correct display!!!

3D Attractors V1.1

Examples of 3D Attractors using iterator to handle curve vectors and interface definition to handle different attractors.
Click to get next attractor.
key commands:
0 .. 9 select
+ / - zoom
d / f distance
q / w thickness
a axis on/off
r reset
s save picture
<blanc> select next
<back> select previous

Animated Lorenz Attractor

An animated example of the Lorenz Attractor using iterator to handle vector array.

Clock1

Change line
copy(0, 0, width, height, 1, 1, width-3, height-3);
to
copy(0, 0, width, height, 1, 1, width-2, height-2);
for openProcessing 2.0.
Then the display will be better than v1.5.1

BumpTexturedSphere

Simple examples of procedural bump mapped antialiased sphere.
Original Author: Ken Perlin
see http://mrl.nyu.edu/~perlin/homepage2006/bumpy/index.html
and http://cs.nyu.edu/~phs253/cg/assignment10/Sphere.java

Adapted for OpenProcessing ... 2013-03-12 PG

press 's' to save picture as 'BumpySphere.png'
press mouse button to change bump mapping and surface color

Snowy Forest

'SnowyForest' creates a forest with random trees in winter.
Press mouse button or <blanc> to stop/start animation.
<return> clear screen
b toggle blurring
o toggle scrolling
s save screenshot as "SnowyForest.png"

Planet Maker v1.3

Simple raytracing of a random colored sphere with a transparent atmosphere and a light source.
Many Raytracer decide first if the ray hits the sphere or not. Expensive antialising calculation is done afterwards. With this algorithm the sphere intersection and the atmosphere transparency is calculated at once.
Press <blanc> to generate a random planet!
Please read source code for more commands.

Sphere Tracer v1.1

Simple raytracing of a colored sphere with transparent atmosphere which has an other color.
Many Raytracer decide if the ray hits the sphere or not.
Expensive antialiasing calculation is done afterwards.
With this algorithm the sphere intersection and the atmosphere transparence are calculated in one step.
This sketch is only showing the basic effect.
Sphere coloring and reflection ray calculation has to be added for better results (see PlanetMaker).
Please press <blanc> or mouse button to create a random sphere.

Scrolling Palette

Demonstrate noise generator to create a scrolling color palette
Use left mouse button to change 'noiseDetail':
* mouseY = octaves, mouseX = falloff[%]
Use right mouse button to change resolution:
* mouseX = deltaX
See also: Book: Processing - a programming handbook
for visual designers and artists, page 131
Note:
Do not work with v2.0b6 as javaScript export! There seems to be an error in copy(...) command.

Green Mountains

A tiny sketch scrolling through a color shaded mountain landscape...

Thorn Fractal v2.0

Create randomly chosen thorn fractals
see also: http://paulbourke.net/fractals/thorn/
key input:
<blanc> select random thorn fractal
1..5 select predefined thorn fractal
c set random sinus colors
r set random noisy colors
g set gray scaled colors
p toggle palette drawing
i toggle information display
k toggle zoom
m change pixel multi sampling (time*16)
s save "ThornFractal#.png"
+/- change escape value

Random Distributed Sphere Points v1.1

Example of how to generate random uniformly distributed points on a sphere.
Press blanc to generate new points.
Looks pretty good with processing >= 2.0!

Retained Panorama Viewer V2

View a panoramic scene (360°) where you can look around in any direction.
You are standing inside a textured sphere, which uses PShape.GROUP to define it in retained mode. That's the reason why it is very fast. On my PC the animation run with about 250 pictures per second !!!
It requires processing >= 2.0 and therefore it will run only offline at the moment !
Please read source code for mouse and key input handling.

Retained Panorama Viewer V1

View a panoramic scene (360°) where you can look around in any direction.
You are standing inside a textured sphere, which uses PShape.GROUP to define it in retained mode. That's the reason why it is very fast. On my PC the animation run with about 250 pictures per second !!!
It requires processing >= v2.0 and therefore it will run only offline at the moment !

SkyboxViewer 2.3

Prepared for Processing v2.0: can be run after some small changes.
Because of using OPENGL it works only offline at the moment.
For handling see original version.

Algebraic Surface Viewer V2.3
(Dec2013)

Interactive display of many Algebraic Surfaces.

mouse button: rotate shape

-- key commands --
0 .. 74 select surface by index number
cursor left/right rotation speed
cursor up/down turn up/down
F1, h switch help level
c random colors
... more see source code ...

RoughSea v1.3

Weather is cloudy and windy and the sea is rough...
key input:
i toogle information
s save as picture 'RoughSea.png'
<blanc> change animation mode (0..3)
left/right change falloff value
up/down change octave value

stochasticMenger v2

A stochastic menger cube using predefined shapes.
Added feature of this tweak: redefine 'retained mode' shape.
key commands:
x,y,z hold down to rotate about x-, y- or z-axis
e toggle edges
r create random menger cube
s save image as "stochasticMenger.png"
...Think I play to much BoulderDash formerly :-)
Note: only running offline with version >= 2.0

Prime Spiral

Draw fermat's spiral with colorized points.
Prime number will be highlighted.
mouse:
press left mouse button to change angle
press right mouse button to zoom in/out
keys:
r reset parameters
s save picture file as 'PrimeSpiral.png'
+/- change point size

retainedWindmill v2.0

A retained mode example of Processing v2.0.
Note: at the moment you can run it only offline!
Please read http://codeanticode.wordpress.com/2012/03/26/opengl-in-processing-2-0-alpha-5/
mouse click toggle texture...

Lightning Test v1.2

Interactive testframe for light experiments.
Primary goal is to test different light sources
with different settings.
input: change slider values or rotate test shape up/down
keys:
<blanc> toggle rotation
a toggle axis
f toggle framesPerSecond
n set random light values
r reset all light values
i turn off light intensities
s save as picture 'LightningTest.png'
+/- zoom in/out

retained RGBCube

A PShape example of a Processing v2.0 feature:
Create a colored cube as a retained PShape object .
Note: at the moment you can run it only offline!

3 Point Circle Dance

--- A 3point circle animation ---
press mouse button to stop animation
press 's' to save png picture
press 'blanc' to switch drawing mode

MouseHunters

a PVector usage demonstration...
description:
Hunters with different speed
and size try to catch mouse pointer.
mouse input:
Use left mouse button to change color mode.
Use right button to restart hunters.

PlayingWithRecursion

Draw a rotating cube where the sketch picture will be projected to the six cube walls in the next frame. As result we get an animated pseudo-3D iterative function system.
keys:
[t] transparent on/off
[s] shadow on/off
[p] save as png picture

PlayingWithSpiro

Just playing around with transparent spirographs and image copy for transparent image resizing.
Press 'blanc' or mouse button to draw next random spiro.
Press 's' for saving a picture.

PlayingWithLissa

Just playing around with transparent ellipses and image copy for transparent image resizing.
Press 'blanc' or mouse button to change demo parameters.
Press 's' for saving a picture.

Animated Tunnel with Turing Patterns

This sketch is a combination of a simple tunnel demo with a turing pattern simulation.
Change simulation values with this keys:
[b] toggle bluring
[f] toggle fps
[h] toggle help
[m] toggle map
[o] toggle rotation
[p] change pattern
[r] reset
[s] save picture
[t] toggle turning simulation
[ ] blur once
[+],[-] change limits
[up],[down] change resolution
[left],[right] change iteration

Interactive Ray Refraction Simulation

You can change length and direction of the ray, the refraction index
and in test mode the ray resolution.
Press [blanc] to change test mode and [r] to reset parameters.
Btw. I am also using my improved vector 3d class called v3d!
If you have some improvements, let me know...

Algebraic Surface Viewer v1.3

Surface Viewer v1.3 (Mar2012) using GLGraphics and Toxiclibs libraries.

Because of using OpenGL it works only offline!

-- mouse input --
left mouse button rotate
right mouse button rotation on/off
mouse wheel zoom in/out

-- key commands --
0 .. 99 select surface
cursor left/right scrolling speed
cursor up/down turn up/down
F1 toggle help & frames per second
F3,F4 +/- zoom in/out
blanc show next surface
backspace show previous surface
r reset camera
s save picture file as Surface_<surfaceName>.png
for more commands see source...

AlgebraicSurface_Balls_v2

Improved version using dynamic call of surface function and added more surfaces. For input handling please take a look at the source code.

conical camera movement

Demonstrate conical camera steering using key and mouse input.
- Press left mouse button to rotate object.
- Press right mouse button to zoom object.
- key commands:
left/right rotate object left/right
up/down turn object up/down
+ / - zoom in/out
blanc animation rotation right/left/off

Menger Sponge Variations

View different variations of recursive cube replacement.
left mouse button to rotate object
right mouse button to zoom object
key commands:
1 .. 7 select object
+ / - change recursion deep
a toggle light animation
o toggle rotation
p toggle light drawing
F1/F2 change figure
F3/F4 change texture

Ray-Sphere Intersection

Intersection of a ray with a sphere.
Take a look at the function
int raySphereIntersection(Ray ray, TSphere c, PVector S1, PVector S2);

Ray-Circle Intersection

Intersection of a ray with a circle in 2D.
Take a look at the function
int rayCircleIntersection(Ray ray, Circle c, PVector S1, PVector S2);
It's equal to raySphereIntersection(...)!

PG_SpherePictures

Lighten your picture spheres with the mouse...
Left mouse button - toggle light (L)
Right mouse button - toggle background clearing (B)
+ / - change sphere details

Nearest Distance Point To LineSegments

This is a small test sketch to get the nearest distance of a point P (the mouse position) to some line segments given by two points.
Please take a look at the kernel function:
float SquaredDistancePointToLineSegment(PVector A, PVector B, PVector P, PVector S).

Press 'blanc' key for randomize one line.

PG_AlgebraicSurface_Balls

Simulation: Approximate balls to selected algebraic surface. v1.0 25.8.2011

key commands:
f10, h toogle help
cursor left/right auto scrolling
cursor up/down turn up/down
0 .. 6 select surface
F1, backspace show previous surface
F2, blanc show next surface
F3, + zoom in
F4, - zoom out
o toggle rotate
c toogle cube
d toogle debugging
p show pushing lines
u toogle update
t toogle transparency
r restart
s save AlgoSurfBalls#.png

algorithm: see source code...

Belousov-Zhabotinsky Reaction v2.2

BELOUSOV-ZHABOTINSKY reaction
algorithm: http://www.aac.bartlett.ucl.ac.uk/processing/samples/bzr.pdf
V2.0 2011-08-08
v2.2 2012-05-04
scrollbars for interactive value change added
mouse buttons:
left - change values and press buttons
center - reset values
right - random dots

SkyboxViewer 2.2

--- mouse input ---
left mouse button rotate skybox
right mouse button, mouse wheel zoom skybox
--- key input ---
0 .. 9 select skybox 0..9
up/down, W/S scroll up/down
F1,left,A auto scroll to left
F2,right,D auto scroll to right
Q stop horizontal scrolling
F3/F4, +/- zoom in/out
F5,blanc,return,N load next skybox
F6,back,pageUp,P load previous skybox
J save "snapshoot.jpg"
F7,V set vertical angle = 0
H set horizontal angle = 0
F8,Z zoom reset
F9,R reset all
F10,I help on/off
C center window
Esc quit

Spiral Mesh Point Triangulation

Interactive Delaunay Triangulation of Spiral Points

input:
change slider values
or press right mouse button to set random values

Voronoi Normal or Psychodelic

interactive Voronoi diagram animation<br>
--------------------------------------------<br>
some tricks used to accelerate drawing!

press mouse button to pause animation <br>
press right mouse button to swap mode (normal or psychodelic)<br>
<br>
key input:<br>
'd' dots on/off<br>
'f' show/hide frameRate<br>
's' save "snapshoot.png"<br>
'-' decrement dots<br>
'+' increment dots<br>
' ' swap mode (normal or psychodelic)

Scrolling Noise 1

An example of an interactive noise generation. Use left mouse button to change resolution:
mouseX = deltaX, mouseY = deltaY
Use right mouse button to change 'noiseDetail':
mouseX = octaves, mouseY = falloff[%]
see also Book: Processing - a programming handbook for visual designers and artists, page 131

Editing a closed curve

demonstrate how to draw a close curve
- Click left mouse button to add a curve point.
- Click right mouse button to remove a curve point.
followed by
43
following
5

favorites

Share Share Subscribe to sketches