Fastness logo - art programming projects
Art: Gravity
12th December 2010

One of the nice things about Processing is the number of contributed libraries available.  I used the traer physics library (should be here but was down when I last checked - you can use the toxi utilities libraries instead if traer physics is not available now) to simulate masses moving under gravity towing another mass, not interacting gravitationally, on a spring.  With random positions for the start positions and velocities some nice pictures came up, all I had to do was mark the positions of the masses and springs each frame - it's that process that I used to create the graphics in the banner at the top of the page.

Pictures were interesting but I've also been able to get a 3D model as well (depending on how picky you want to be it could be argued that it represents a time history of a simulation in 3D space and so might be described as 4D..)

Gravity - a 3D model of a simulation

In 2D the results can look like this:

gravity 2d
I've put a copy of the Processing code here, unzip to your sketches folder but you'll need the traer physics library.  It's not very clever or neat but if you find it useful or interesting please feel free to mail me...

fastness - Iain Banks Graphics
Fastness - Iain Banks Graphics
All of the content from my Iain M Banks website, now shifted to be a section in this one

fastness - Links & Resources:
An open source programming tool aimed at artists, engineers and designers.  Simple, light and Java-based with a wealth of libraries and a strong user community

3D printing for the masses - plastics and metal to your design or team up with a desigenr to personalise a design with a 'co-creator'.  Visit my Shapeways shop for some things I've designed.

MeshLab is an open source, portable, and extensible system for the processing and editing of unstructured 3D triangular meshes

Blender is the free open source 3D content creation suite, available for all major operating systems under the GNU General Public License

GIMP is the GNU Image Manipulation Program. It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages

An Open Source vector graphics editor, with capabilities similar to Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable Vector Graphics (SVG) file format

Retail laser cutting outlet with centres in New Zealand, USA, Germany, Italy and the UK (if not more by now)

Java development environment