browse OpenProcessing

Proyecto Final : Twister
Dhish
Phaistos Disc
browse all>

browse the portfolio of Rafael Cosman

Music Matrix
Captcha generator
Dhish
Slalom
Dhish

Dhish

uploaded by
Rafael Cosman
Dhish, a simulation of evolution.

Green cells-plants, yellow-herbivores, red-carnivores.
Cells have many attributes some of which prove useful in getting food.
They pass these attributes on to their decedents, with some variation, thus the population evolves.

Mouse wheel (or right-click and drag) to zoom. Click and drag to move dishes. Drag the edge to change its size.
P pauses. N makes a new dish. +/- changes the speed. Q toggles quality.
Double-click a dish to zoom in on it. Double-click an animal to control it. Your animal will follow the mouse.
Embed Code
Fave'd by 35 users
Sketch added to your favorites in your portfolio.
You must login/register to add this sketch to your favorites.

comments

source code

Comments

Claudio Gonzales
29 Aug 2009, 07:55
This is amazing! I'm definitely going to try making something like this. Great job, my friend.
enrique soriano
29 Aug 2009, 11:44
this is more fun than going to zoo
Alasdair Turner
31 Aug 2009, 09:41
This is wonderful! Great sketch.
Xiaohan Zhang
02 Sep 2009, 19:32
this is great! unfortunately for me it seems that all of my dishes end up the same way
Rafael Cosman
03 Sep 2009, 09:59
Each dish is unique.
The dishes all have different visibility, viscosity, and other stats which affect the cells inside. Some dishes will die out, others will evolve "dinosaurs".
Rafael Cosman
04 Oct 2009, 21:20
Uploaded huge changes!
Improved AI, less lag, better graphics, quality toggle.
Rafael Cosman
06 Oct 2009, 18:59
Should I add sexual reproduction?
feralin
17 Oct 2009, 15:51
rafi, it would be so cool if you could programm it so that:
when a dish moves over another dish, cells and plants are transfered between dishes. If you do that, it would be awesome!
Rafael Cosman
17 Oct 2009, 17:17
I've thought adding that, but it would have weird effects, because the dishes have diffrent properties. A cell might switch dishes, and then suddenly start going really fast. Ill prototype a version with dish-transfer and send it to you, if you post your email address.
feralin
18 Oct 2009, 11:00
rafi, problem:
if you are controlling a cell, you can still zoom in and out. That defeats the purpose of being able to see only the cell's vision, doesn't it?
Anders
16 Nov 2009, 13:06
Very cool. I love this sort of stuff and hope I'll get around to making something similar to play around with.

Comments: I think it should zoom in and out on the mouse pointer position rather than on a fixed origo. The gray edge could be more rigid, so cells can't move inside it and get trapped.

Do you simulate a conservation of "nutrients", so that there is only a fixed amount of "organic matter" available in each dish, or does "nutrients" vanish and appear from nowhere? Is energy influx and consumption accurately simulated? Temperature? Acidity?

Sexual reproduction might be worthwhile if you can make a simulation where it would actually have the benefits it has in the real world. (I haven't fully grasped what those benefits are.)

Next step: Multicellular organisms!
Rafael Cosman
27 Mar 2010, 20:31
The cells aren't actually getting trapped in the edge. What is happening is that an herbivore is seeing a carnivore and panicking, running away as fast as it can. They are not smart enough to realize that they are running into a wall.

There is not a fixed amount of nutrients, rather there is a fluctuating amount of energy in the dish. The plants are producers, they effectively generate energy. The animals are consumers, they can only take the energy from plants or other animals.
Influx of energy is accurately modeled; The light entering the dish is constant, but the amount actually captured by the dish depends on the percentage of the dish covered by plants.
Owaun Scantlebury
20 May 2010, 16:59
This sketch will be part of the Processing Combined Effort at www.processing.org
You need to login/register to comment.