Monday, July 29, 2013

combining algorithmic generation with human selectivity


The "Mandelbox" is a fractal, analogous to the Mandelbrot set but with a slightly different defining function. All of the detail in the Mandelbox exists (in the Platonic sense) without human intervention. In that sense it is a found, natural object, like a seashell.
On the other hand, we have some freedom in our renderings. There are a few free parameters the artist can set, or any parameter could be replaced by some more complex function. At some point it stops being what would typically be referred to as a Mandelbox, but that point is fuzzy and socially defined.
We can choose the angle and scale to capture it at. We can choose the palette or color map. We can choose to use different shading algorithms. Some of these choices will result in an image that we find more pleasing than others. These images get saved. Some of our favorites of those are posted online. The images which are most often clicked on because of an intriguing thumbnail or popular contextual information move upwards through the rankings on Google images. The result is a combination of a generative process and human selectivity, making an enjoyable slideshow:

human-selected computer-generated Mandelbox views


Athanasius Kircher

The flying turtles of Henan from China Illustrata.


One of the sources I used about Kircher is now available online. Beyond his ideas about organizing knowledge and automating art, his books are just a kick to look through. They're almost like illustrations for encyclopedia articles, but then you see a dragon, or a ladder to the center of the earth, or a mountain in the shape of a man.

Athanasius Kircher: A Rennaissance Man and the Quest for Lost Knowledge

This section of the Wikipedia article on him contains links to several of his manuscripts.

Saturday, July 20, 2013

Kaleidoscopic timelapse


This seems like it could be the opening credits to some Ghost in the Shell sequel.
(By Michael Shainblum.)

Saturday, June 29, 2013

Tolkien and Darwin Among the Machines


In The Letters of J.R.R. Tolkien, I found the following passage. He is writing to his son Christopher, who was training to be an air force pilot in Africa during World War II:
I wonder how you are getting on with your flying since you first went solo-- the last news we had of this. I especially noted your observations on the skimming martins. That touches to the heart of things, doesn't it? There is the tragedy and despair of all machinery laid bare. Unlike art which is content to create a new secondary world in the mind, it attempts to actualize desire, and so to create power in this World; and that cannot really be done with any real satisfaction. Labour-saving machinery only creates endless and worse labour. And in addition to this fundamental disability of a creature, is added the Fall, which makes our devices not only fail of their desire but turn to new and horrible evil. So we come inevitably from Daedalus and Icarus to the Giant Bomber. It is not an advance in wisdom! This terrible truth, glimpsed long ago by Sam Butler, sticks out so plainly and is so horrifyingly exhibited in our time, with its even worse menace for the future, that it seems almost a world wide mental disease that only a tiny minority perceive it. Even if people have heard the legends (which is getting rarer) they have no inkling of their portent...Well, I have got over 2 thousand words onto this flimsy little airletter; and I will forgive the Mordor-gadgets some of their sins, if they will bring it quickly to you... (7 July 1944, letter 75)
Christopher seems to have pointed out in a letter some contrast between the natural flying of the martins (swallows that fly with their mouths open to skim insects) and the laborious difficulty of flying and taking care of his own air force planes. His father was reminded of the main theme of The Lord of The Rings, which he was deep in the middle of writing at that point (and in fact he considered Christopher his main audience for the work). The idea is that our attempt to improve the world through creating technology is doomed to bring about our destruction in the end. This apocalyptic vision of the future of automation he felt had been captured in the writings of Samuel Butler-- referring, surely, to Darwin Among the Machines. Tolkien is, as far as I am aware, the only reader before the 1950s who ever took Butler's story as a serious warning about a possible future, rather than just a silly parody. I would love to be able to read Tolkien's own vision of an apocalyptic dystopian future where the machines have risen.
Later, in January 1945, upon learning that the Russians were 60 miles from Berlin, he writes about the tragedy of the destruction of Germany ("be it 100 times merited") and then writes,
Well, the first War of the Machines seems to be drawing to its final inconclusive chapter -- leaving, alas, everyone the poorer, many bereaved or maimed and millions dead, and only one thing triumphant: the Machines. As the servants of the Machine are becoming a privileged class, the Machines are going to be enormously more powerful. What's their next move? (January 30, 1945, Letter 96)
He writes upon learning of the atomic bomb (again in a letter to Christopher):
The news today about 'Atomic bombs' is so horrifying one is stunned. The utter folly of these lunatic physicists to do such work for war purposes: calmly plotting the destruction of the world! Such explosives in men's hands, while their moral and intellectual status is declining, is about as useful as giving out firearms to all inmates of a gaol and then saying that you hope 'this will ensure peace.' But one good thing may arise out of it, I suppose, if the write-ups are not overheated: Japan ought to cave in. Well, we're all in God's hands. But he does not look kindly on Babel-builders. (9 August 1945, letter  102)
Later he writes to his publisher Unwin:
You can make the Ring an allegory of our own time, if you like: an allegory of the inevitable fate that awaits all attempts to defeat evil power by power. But that is only because all power magical or mechanical does always so work. (31 July 1947, letter 109)
(C.S. Lewis shared many of these concerns, by the way. There is the 'Deplorable Word' that destroyed the world of Charn in The Magician's Nephew and one of the best warnings about the danger of messing around with sentients' utility functions I have ever read in The Abolition of Man.)

Tuesday, June 25, 2013

Excerpt 5

The problem becomes, then, how to make a machine that grows in ability over time that is not limited by the initial choices made by the inventor of the machine.
Brewster conceived of the kaleidoscope as a labor saving device for artists, an automation of part of the creative process:
"When we consider, that in this busy island thousands of individuals are wholly occupied with the composition of symmetrical designs, and that there is scarcely any profession into which these designs do not enter as a necessary part, so as to employ a portion of the time of every artist, we shall not hesitate in admitting, that an instrument must have no small degree of utility which abridges the labour of so many individuals. If we reflect further on the nature of the designs which are thus composed, and on the methods which must be employed in their composition, the Kaleidoscope will assume the character of the highest class of machinery, which improves at the same time that it abridges the exertions of individuals. There are few machines, indeed, which rise higher above the operations of human skill. It will create, in a single hour, what a thousand artists could not invent in the course of a year; and while it works with such unexampled rapidity, it works also with a corresponding beauty and precision.[1]"

The Reverend Leigh Richmond wrote on a similar theme:
"I took up my kaleidoscope; and, as I viewed with delight the extraordinary succession of beautiful images which it presented to my sight, I was struck…with the singular phenomenon of perfect order being invariably and constantly produced out of perfect disorder—so that, as by magical influence, confusion and irregularity seemed to become the prolific parents of symmetry and beauty.
 It occurred to me, that the universality of its adoption would imperceptibly lead to the cultivation of the principles of taste, elegance, and beauty, through the whole of the present and following generations, and that from the philosopher and artist down to the poorest child in the community…
 I saw a vast accession to the sources of invention, in its application to the elegant arts and manufactures, and the consequent growth of a more polished and highly cultivated state of habits, manners, and refinement, in both… I was struck with the idea of infinite variety more strikingly demonstrated to the eye than by any former experiment. Here the sublime mingles with the beautiful.
 I perceived a kind of visible music. The combination of form and colour produced harmony—their succession melody: thus, what an organ or pianoforte is to the ear, the kaleidoscope is to the eye. I was delighted with this analogy between the senses, as exercised in this interesting experiment.…[2]"

Things did not turn out quite as Sir Brewster and Rev. Richmond expected. Our use of machines to automate work previously done by artists has modified our concept of beauty. What used to take a great deal of skill and time could be done immediately and without effort by a mechanical process. This led to society valuing designs of rigid perfect symmetry less. A similar effect occurred with the invention of photography. Because of the ease of obtaining a perfectly accurate likeness, abstract and nonrepresentational art became more highly valued by the art world.
Brewster was at the same time able to see his invention as a toy, and as an important advance of science.[3] He saw it as a kind of proof of principle, which later engineers would use for practical purposes, in much the same way that components of automata found their way into practical machinery:
"The passion for automatic exhibitions which characterized the eighteenth century gave rise to the most ingenious mechanical devices, and introduced among the higher orders of artists habits of nice and accurate execution in the formation of the most delicate pieces of machinery. The same combination of the mechanical powers which made the spider crawl, or which waved the tiny rod of the magician, contributed in future years to purposes of higher import. Those wheels and pinions, which almost eluded our senses by their minuteness, reappeared in the stupendous mechanism of our spinning-machines and our steam engines. The elements of the tumbling puppet were revived in the chronometer, which now conducts our navy through the ocean; and the shapeless wheel which directed the hand of the drawing automaton has served in the present age to guide the movements of the tambouring engine. Those mechanical wonders which in one century enriched only the conjurer who used them, contributed in another to augment the wealth of the nation; and those automatic toys which once amused the vulgar, are now employed in extending the power and promoting the civilization of our species. In whatever way, indeed, the power of genius may invent or combine, and to whatever low or even ludicrous purposes that invention or combination may be originally applied, society receives a gift which it can never lose; and though the value of the seed may not be at once recognized, and though it may lie long unproductive in the ungenial till of human knowledge, it will some time or other evolve its germ, and yield to mankind its natural and abundant harvest.[4]"



[1] Ibid.
[2] Rev. Richmond, Hogg's Weekly Instructor, Volume 6 1851
[3] At the Media Research Laboratory at NYU where I studied in 2004 and 2005, a form of kaleidoscope was actually used to study the way isotropic materials, like satin, appear and respond to light at various angles. It was a realization of Brewster’s hope that the kaleidoscope would find a scientific use.
[4] Brewster, Letters on Natural Magic, 1868, p.336

Saturday, June 15, 2013

Excerpt 4

Sir David Brewster


Sir David Brewster, like many people of the time with an inclination to research and reading, studied theology to become a teacher and a licensed preacher. His interest in optics led to many significant discoveries about diffraction, refraction, and the use of lenses. Along with Fresnel, he was responsible for getting Fresnel lenses installed in lighthouses, and he invented the lenticular stereoscope (which uses a prism rather than mirrors to combine the stereo images). Brewster was conducting experiments on light polarization and happened on the design of the kaleidoscope. When Brewster showed his prototype kaleidoscope to manufacturers of optical instruments, pirate copies began cropping up all over the London and soon spread around the world:
You can form no conception of the effect which the instrument excited in London; all that you have heard falls infinitely short of the reality. No book and no instrument in the memory of man ever produced such a singular effect. They are exhibited publicly on the streets for a penny, and I had the pleasure of paying this sum yesterday; these are about two feet long and a foot wide. Infants are seen carrying them in their hands, the coachmen on their boxes are busy using them, and thousands of poor people make their bread by making and selling them. (Letter from Brewster to his wife, May 1818)
The kaleidoscope allowed the viewer to enter into a virtual world, filled with bright colors and concealed symmetries. If it was a scientific instrument (as the name implied), it was an instrument of some faerie science, a science of beauty. It partook of the potential of mirrors to create other worlds, to open up new infinite spaces. The forms were reminiscent of magical mandalas, and viewers often compared the hypnotic effect of looking through a shifting kaleidoscope to that of listening to music.1
Brewster was an early proponent of the idea that magic and beauty could be found in technology. He wrote a series of letters to Sir Walter Scott on the topic of natural magic. For Brewster, understanding how magic tricks and automata worked only increased their appeal. This was in stark contrast to his contemporaries, romantic artists like John Keats, who felt that science killed beauty:
…Do not all charms fly
At the mere touch of cold philosophy?
There was an awful rainbow once in heaven:
We know her woof, her texture; she is given
In the dull catalogue of common things.
Philosophy will clip an Angel’s wings,
Conquer all mysteries by rule and line,
Empty the haunted air, and gnomed mine -
Unweave a rainbow, as it erewhile made
The tender-person’d Lamia melt into a shade. 2
Brewster’s conception of beauty, on the other hand, was grounded in neoclassicism. Symmetry and geometric order were key ideas in this. Beyond that, he assumed that a science of beauty was possible, that universal principles of beauty could be discovered:
If we examine the various objects of art which have exercised the skill and ingenuity of man, we shall find that they derive all their beauty from the symmetry of their form, and that one work of art excels another in proportion as it exhibits a more perfect development of this principle of beauty. Even the forms of animal, vegetable, and mineral bodies, derive their beauty from the same source...3
In The Kaleidoscope (a book on the optical theory behind the construction of his invention) he gives a theory of color harmony and repeatedly emphasizes the importance of carefully constructed devices that don’t allow the slightest imperfection in symmetry.
Yet both neoclassical and romantic concepts are evident in the kaleidoscope: the hand selected elements are romantically beautiful, beautiful in how they present themselves to the senses. The formal constraints, the mirrors, are classically beautiful in how they appeal to the intellect.
It is comparatively simple to set up a system of rules and generate new images. It is much more difficult to choose a set of rules that will produce images that are aesthetically pleasing. In order to do the latter, we need to have some theory of beauty or interest. The attempt to mechanize requires that we understand; but the attempt to understand beauty transforms it. There is essentially a paradox here: creativity must continually be pushing the boundaries of what is new. Simply being new is not enough, however; to be considered creative it must be both new and beautiful. Any static conception of beauty must quickly become inadequate.

1 The idea of an analogy between color and music dated at least to 1590, when the artist Arcimboldo invented a system for composing color-music. In 1725, the Jesuit monk Louis Bertrand Castel invented an “ocular harpsichord,” which opened a curtain concealing a bit of colored glass whenever a note was played. Isaac Newton was the first to realize that there may be a deeper connection in that both colors and sounds have characteristic frequencies. Despite thousands of related efforts over the years, including the light bars on an equalizer, Disney’s Fantasia, and MTV, visual music that is able to give the same kind of effect through the eyes that music gives through the ears is still elusive.

2 John Keats, Lamia, Part II, 1819


3 David Brewster, The Kaleidoscope, chapter 20

Friday, June 14, 2013

Excerpt 3

Beauty from the Symmetry of Their Form:

The Invention of the Kaleidoscope

In 1817, Sir David Brewster patented the kaleidoscope. Others had noticed the effect of two mirrors meeting at an angle before, as recounted in this selection from an 1818 article in The Edinburgh Magazine and Literary Miscellany:
The repetition and reversion of images in a glass is noticed in the Masfiti Naturalis of Baptista Porta, a Neapolitan nobleman, who flourished about the latter part of the sixteenth century, and was distinguished for his zeal in promoting philosophical pursuits…
In the Ars Magna Lucís et Umbra of Kircher, printed in 1646, we have an account of the same circumstance, and also of the repetition of the sectors round the centre of the circle:
“A wonderful property,” says he, “and one which has not, as far as I know, been observed by any one, is exhibited with two specula, so constructed as to open and shut like a book; and placed on any plane in which you have described a semicircle divided into its degrees. For, if the point in which the specula meet be placed in the centre of the semicircle, so that the side of each speculum shall stand upon the diameter, the image of an object will only be seen once, and two objects will appear, one without the specula, the true one,—and one within, the image. But if the sides be placed at an angle of 120°, you will see the image of the object within the specula twice, that is, along with the real image, three objects But if the specula intercept an angle of 90°, you will see the circle divided into four parts, and four objects; in the same manner, at an angle of 60°, you will see a hexagon with six objects.’1
He then applies the principle to some curious contrivances which, by his own account, filled his spectators with astonishment. With one candle he shows how to make a complete chandelier. “With angles of 120°, 72°, and 45°, you will see,” says he, “with no less delight than admiration, a chandelier with three, with five, and with eight branches.”

1 Athanasius Kircher, Ars Magna Lucís et Umbra, 1646