I have wanted to do this right after I did it in 2d almost a year ago. The task wasn’t easy since there is exponentially more of everything and that cost cpu.
Well.. “If you wish to make an apple pie from scratch, you must first create the universe.” – said Carl Sagan and that meant study on optimizing the as3.
Here are the rules:
1. Every dot know their neighbours at up, down, left, right, back and forward.
2. Ones their Boolean ‘active’ is true they scale up and add random value to their property ‘hot’.
3. If random value is greater then their hot value they set their neighbours active to true.
4. All dot’s ‘hot’ and ‘scale’ value drops during time.
Click on them to active one random dot. Realize that what you are seeing are reactions created by change in constant system.





November 2nd, 20099:21 pm
Social comments and analytics for this post…
This post was mentioned on Twitter by simppafi: Lab62: http://www.simppa.fi/blog/?p=494 Game Of Life 3D…
really cool!!!
runs very smoothly too, great work.
A suggestion for a variation – I always fancied doing a 3D colourcube, basically each axis represents a colour component (R, G, or B) and each each ‘dot’ is an incremental value based on cube reference (0 – 255)
Should be fairly quick to implement I think and might look cool…
Jon B: It’s not that simple to implement custom colors and still have this much of performance and rather low usage on memory. The evoCunningParticleEngine use copyPixels method to draw and everything is basically precalculated.
The way to have custom color on each particle would be to precalc the colormatrixfilter and use applyFilter to draw.
Example:
data.applyFilter(source, rect, point, colorMatrixFilter);
But for some stupid reason the applyfilter method removes the alpha channel of source bitmapData! This could be quite fast method, but not nearly as fast as copyPixels.
I’m still investigating this issue.
WOW!
Hello,
Found your experiment very interesting. I have been interested in implementing Conway’s 2-Dimensional game of life using a 3D model for some time, but never got around to doing it. Have you also experimented with concrete set of rules to govern the life-cycle of the cells? I would really like to see an example of that if you have made it.
Now I am inspired to work on that problem once again, and make it into a proper simulation.
cheers!
Siddharth