Monthly Archives: July 2007

(Structuring) Structure Synthesis

Well, I started worked on a spare time project, called Structure Synth: a small application for generative structure synthesis (in 3D). The app itself will be built around an embedded editor with a OpenGL visualization window next to it. Here is a mock-up shot:

Structure Synth GUI

Structure Synth GUI

The structures are designed in a simple language, EisenScript (named after the Great Russian director, Sergei Eistenstein, of course). It will be similar, but not identical, to the Context Free Design Grammer that Context Free uses.

An EisenScript defines a Rule Set, where each rule is defined as a number of Actions.

An Action would typically be to perform a Transformation and either call another rule, or one of the built-in drawing primitives. As in Context Free rules can be defined recursively in terms of themselves.

Rules are allowed to be ambiguous: more than one definition for a rule can exist, and when ambiguous rules are encountered the Builder will choose one at random. Again, as in Context Free, it will also be possible to specify a weighting for each of the rule definitions.

Here is an example of how an EisenScript rule set might look:

EisenScript example

Structure Synth will be built in C++/Qt4.3/OpenGL and will be Open Source (GPL). It should be cross-platform (Windows, Linux, and Mac).

I’ve started a subversion repository here (Google Code Hosting), but will probably move to SourceForge.

Generative Art

The Syntopia logo above was created by my first script in Context Free, a program I can highly recommend. It is a bit like Logo (does anyone remember this?) on steroids.

However, I’ve been thinking of ways of extending Context Free into 3D, and will start posting some of my design sketches for Structure Synth – an IDE/Language for creating generative art (like Context Free).

I plan to write it in C++/Qt4.3/OpenGL and it should be runnable on Windows/Mac/Linux.

Variation on the Syntopia Logo

Variation on the Syntopia Logo

For an example of a Context Free script, the syntax for the above picture can be downloaded here: circles.cfdg.

The syntax for Structure Synth will be quite similar to CFDG-script but with a few twists: like the ability to ‘retire’ rules after a certain number of either recursions or iterations, and the option to change (rendering) settings when a rule is executed. Naturally the ‘state’ operators (like rotations and deformations) also need to be adapted to a 3D world.

There will be an integrated OpenGL viewer, and I plan to add PovRay support for creating high-quality views of the 3D-models.

More details will follow in the next weeks.

Modern Wonders

Dark Roasted Blend is a daily updated photo blog with “weird and wonderful things”. And yes, some of them really are. This blog entry is a highlight of some of my favorite sights.

Tokyo Storm Water System

Tokyo Storm Water System

Tokyo Storm Water System. (from this entry)

Located below Tokyo and looking like something straight out of Total Recall, these cathedral-like caverns are built as buffers to prevent flooding during heavy rain and typhoon seasons.
Be sure to check out the original photos as well.

Dubai Architecture

Dubai has a lot of fascinating architecture. Their artificial islands are some of the more prominent. They can also be found on Google Maps.

Dubai artificial islands

Dubai artificial islands. (from this entry)

Mega Machines and Big Structures

Almost a trademark of Dark Roasted Blend. A few selected entries:
Creepy High Voltage Installations
Alternative Energy Super Projects
Ultimate Moving Experience II
The Biggest and Hungriest Machines
Even Bigger Machines Dig Bigger Holes

NASA Space Shuttle Transport Platform

NASA Space Shuttle transport Platform. (from this entry)

Russian High Voltage Pulse Generator

Russian High Voltage Pulse Generator. (from this entry)

Solar Thermal Power Plants

Solar Thermal Power Plants. (from this entry)

Krupps Excavator 288

Krupps Excavator 288. (from this entry)

Now that is one mean machine. Can’t help thinking of Naked Lunch: “I use a Krupps Dominator myself. Company policy.

Photosynthesis

Microsoft Photosynth recreates a 3D environment from a number of 2D photos.

This is of course no trivial task, but the reason I have included it here, is because of its quite… futuristic interface, which has to be experienced. It runs directly inside your browser (also in Firefox! – but why isn’t it based on Silverlight?). Cool (and confusing).

Actually, though it is not quite as polished, the Automatic Photo Pop-up 2D to 3D conversion project, seems even more impressive:

It is possible to run the software yourself:

You will need to convert your input image to PNM format, but ImageMagick supports this format. After that you will need to run the ‘segment’ program to create the superpixel image. (Notice that the link is to source files – on Windows, VS2003 is able to compile it after changing ‘random()’ to ‘rand()’ a few places. I’ve also uploaded a Windows binary, in case you are too lazy).

After that download the Automatic Photo Pop-up software and follow the readme file. There are some detailed instructions here.

I must admit that my humble attempts (requires a VRML viewer) with the software was nowhere as impressive as in the video. Also be aware that the conversion can be very slow for complicated pictures (~30 minutes for my tests).