Friday, December 19, 2008

Genetic Art in Silverlight

The plan:
-Build a tool for creating evolutionary art.
-Most evolutionary art is done with genetic algorithms. This one will be done through hacking and crowdsourcing!

General approach:
*Create an AST capable of representing 3d plots. 
An expession is any math function that evaluates in terms of two variables s and t eg:

x=cos(S)*2T

A 3D expressions is composed of an expression for each of its three axes.

*Build a UI for visualizing the equations. Silverlight has no 3D native support, fortunately, the 3D code is not too hard to emulate using Kit3D, and some creativity.
UI features include:
  • Refresh (re-generate the equation, plot the new derivative)
  • Adjust speed/rotation angle
  • Adjust zoom/pan
  • Adjust S and T ranges
  • Displays the current equation on the left pane
  • Adjust resolution (because this program can be very CPU intensive on your machine)
*Build some equations to represent shapes
  • Sphere
  • Torus
  • Spiral
*Build "splicers" that combine equations in random ways to create new generations of hybrid figures.


Progress:




This is still in a very rudimentary at the moment, but I am pumped about the potential!

Currently, it is hard-wired to try different splices of a torus and a spiral, hit the refresh to see different generations.


2 Comments:

Anonymous Anonymous said...

Pete,

If I want to "try it out at" should I save then install or simply run the SilverLight?

Mike

7:58 PM  
Blogger Peter Weissbrod said...

silverlight is a browser plugin not unlike macromedia flash.

when visiting the page in a common browser such as ie, firefox, or chrome you should be prompted to install the plugin. Once installed, you should be able to view it on the web page without needing to download/install anything.

let me know if you still have problems

4:36 AM  

Post a Comment

<< Home