sábado, 28 de marzo de 2015

2D Cellular Automaton deterministic Rules

13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084096 The number of all possible rules for a deterministic 2D cellular automaton... now that's some damm large number. Each rule represents a unique and non random pattern i just wonder the kind of pattern hidden behind this large number. It´s like looking for another earth in the universe.

martes, 24 de marzo de 2015

Cellular Autoamta patterns and 3D

I still believe that writing whether is poetry or code should be  analogous,  writing good code is my goal, but it is hard when your imagination takes you into a sudden frenetic rush of wonder where a "what  if "  lies orbiting my conscience leaving sometimes  concentration and reality fading away...

Let me just say it is hard for a creative soul to follow the grim and restrictive rules of logic, but this has not stopped me from keep on trying. 
 Last time my imagination got trapped between doing a 2D space shooter with patterns generated by discrete dynamical systems and the possibility to explore the  structures i created.  Each iteration creates shapes and forms that are preceded by logic and numbers,  my idea was to put such  algorithms into different use,a  2D space shooter came to my mind.

Each time i looked that this patterns it was more clear that the structures here generated looked more like maps, or levels in a dungeon or a large spaceship.
 I knew that  the space shooter had to come to a halt,  this idea about creating 3D labyrinths seem to be more appealing, that distracted me so much that i could not finish my 2D space shooter on time.

So time went by damage control had to be done, and then i was free to continue exploring, finding the right patterns to use was the first part, and to do so i used normal maps on the sample image to have and idea how would they possibly looked like, i have here some examples. 
Looks like something close to a nano structure.
 Normal Map

Looks like a silver seal.

 















It was clear that a need for a sample 3D world to make this ideas come to life was needed, the implementation was done with Unity3D 4.x which is still a wonderful too, here are the results.



Iterations stacked makes a tower.

Messing up with physics,  i had to remove the rigid-body component



In the last floor of the tower

Trying out Materials


Change in the rules leads to different patterns.
























Witam Pana, Panie Sierpiński, znowu się widzimy!!!!!













 
Approaching Mother Ship