Processing in action
from photo pixel to 3D model in two
easy steps
See the publication
www.ontmoeting.nl
Processing visualisation
With the free Processing program (Open Source)
for Win / Mac computers everyone is able to perform
quite complex operations in a view counts.
Processing is based on the higher level
Java, which is performing very well. Processing has
a good and relative simple interface and UI. You
get thousands of examples on their website and on
the openprocessing website aswell. And it is very
easy to follow via the step by step tutorials to
get started very fast.
the Processing manual (Dutch)
An Processing example with a bit map as
starting point to 3D
We start off with a simple photo of the Zaan in
the Netherlands (100 x 100 pixels). The photo is
read into an Array in Processing and the color of
the individual pixels is put into that Array.
In the active void draw
() the pixels get a new form for
instance a surface, an box or a sphere.

The picture as the starting point

We use every pixel in the picture to save the
individual colors in a Array.

One of the many possible outputs of
Processing of the same picture.
With the use of boxes.



You can see the above photo from this
one.

Some parts of the photo share the same
density (one surface)

Another picture, the centrum of Almere Stad the
Netherlands


Here we see the picture of Almere in full
glory in cubes.
Picture of a text -> Processing -> DXF
-> SketchUp Pro -> Artlantis
This is the chain of the next example. Import a
rel. smal photo with a text on it. Remove in
Processing all background and print in cubes or
sphere the remaining text in full glory in 3D on
the Processing screen.
We start with a picture of the text frase "
Uitgeverij Ontmoeting".
the background is white, the text is red.


Combination on the left 3D spheres, right de
script in Processing.

The used text pixels are put together with
two surfaces and corresponding lines to
connect.

Imported DXF file form Processing to
SketchUpPro.
Alle cubes are outlines. With the use of Ruby
script "Make faces" we managed to put all the faces
on each cube.






The text of the original photo via Processing
-> DXF -> SketchUp Pro -> Artlantis.
With this method it is possible to make a 3D
model of a simple photo, filter out everything
that's not needed and bring in a relief with the
Z-axes in 3D. See everything in 3D in
Processing.
When you press the keyboard 'r' everything in
the program will be exported to the wellknown DXF
file format. From there we make surfaces with the
Ruby script in SketchUp Pro and the end point could
be photo's of the 3D model. With a rendering
program for instance Artlantis Studio we can color
the cubes as needed.
info:
www.ontmoeting.nl
To the
Top - - See
also this Visualisation
page- -
Zonnebloem /
Sunflower
WWW.DESIGNCITY.3DONTWERPEN.NL
© Alfazet, Huizen
|