Friday, September 25, 2009

Continuing on the previous theme. I feel that these would be suitable for a background if I can manage to render them slightly larger. I’m working on it. If I feel like it. What I’m doing here is I’m drawing lots and lots of paths through electric fields. The line is always 80 clockwise from the local direction of the field. Red and blue are not positive and negative, these charges are all considered the same for this since if they were of different sign you would have singularities and that’s not very pretty. The current resolution of the program is locked at 1000×700 so it’s just small enough to be useless as a background for anything larger than a cellphone. Feel free to give it a try though. If you hold down the mouse button, new lines will only be generated within a small radius of the mouse.

posted by admin at 2:53 pm  
Thursday, September 17, 2009

It being a Thursday, after all. Cellular automata and something else which doesn’t have a well defined name that I know of. It draws spirals. Go check it out.

Edit: Changed some constants. This program has a billion constants. The download is still the same by the way, so don’t download it again.

posted by admin at 12:01 pm  
Wednesday, September 9, 2009

I wrote another program which generates a genetic tree showing the ancestry of every individual in the population. Here is everything I’ve written so far in a neat package. Though I’m afraid there is no sourcecode for you at the moment.

A shot of part of a population of 50 organisms

A close up

posted by admin at 10:59 pm  
Friday, August 28, 2009

Experimenting with some different rendering styles.

Edit: Here’s some organisms which were actually evolved.

Edit 2: I’ve been inspired by this man.

posted by admin at 6:15 pm  
Wednesday, August 26, 2009

I was inspired over the summer to write a program which generated and evolved competing, artificial life forms. I spent a lot of my summer interning in a cubicle so I wanted to do something for fun. It doesn’t look like very much at the moment but the program is capable of evolving rather complex creatures. These stick figures are a poor representation and not very interesting to look at so I will probably be making it look pretty. This screenshot shows the simulation after about 40 generations of selection for net distance (essentially selection for locomotion). I use a fixed population size and generate new offspring based on the fitness score of an individual divided by the total population fitness score. Each “creature” is fully described by its genome which is itself composed of any combination of B,S,M, and D. Unlike framsticks I use no special control characters and instead determine the meaning of a given letter by it’s position in the gene. For instance, the 4 characters following an M (motor) are decoded into 2 numbers from (0-15). All the creatures are bilaterally symmetrical because I intend to implement some kind of Braitenberg vehicle type of control scheme. In order for the physiology of the creatures to be meaningful in any way, I’ve implemented a verlet based physics engine. Each “stick” is actually composed of 4 points constrained into a square with the diagonal aligned with the axis of the stick. I found this article particularly helpful.

Edit: Another picture, some 70 generations later

Edit 2: A chart showing that the fitness (the distance traveled by an individual organism in its lifetime) does indeed trend upwards over time. I’ve got some experimentation to do with population size and how frequently mutation occurs.

posted by admin at 3:23 pm  
Tuesday, May 26, 2009

I’m adding rigid bodies next. Probably. It looks very nice in motion, but then it should since it’s just a(n early) physics engine.The background pattern is made from a Go Media vector freebie which you can get here.

Edit: Here is the final result. I was working on putting together rigid bodies out of this but I didn’t make it in time. I’ll probably come back and use the code again though.

posted by admin at 6:28 pm  
Friday, February 20, 2009

Doesn’t it just look neat?

And it’s 4am here so I’m going to sleep.

posted by admin at 5:03 am  
Saturday, February 14, 2009

I wrote a mandelbrot set generator after we talked about them in calc. This one was rendered at 11900×11900 then downsampled to 2000×2000 for antialiasing.Edit: Just fiddling around

posted by admin at 5:44 pm  
Saturday, November 22, 2008

It’s in 3d!

Hold the right mouse button to move around or use wasd.

posted by admin at 7:07 pm  
Thursday, November 20, 2008

I don’t have a fraction of the time I would like to work, but I periodically find myself thinking about what I would like to do so I might as well write that down. I’ll have free time once I’ve applied to college and (hopefully) gotten accepted where I want to go so I can work some more, which will be nice. I’m thinking about coallating some ideas from things I’m currently working on, taking bits and pieces and putting them together. I like the idea of the agent through which the player interacts with the world changing over time. I like the idea of enemies with procedural behavior. I like swarm behavior and organic themes. I have an idea to put this together that takes code from Dwarf Star and Little Fish. This should cut down on the number of current projects and I think it might be interesting.

posted by admin at 7:40 pm  
« Previous PageNext Page »

Powered by WordPress