|
![](/i/fill.gif) |
--------------( oo )--------------
For the Cellular Automata, go see the software Cellular Automata Viewer 2.0.
You could play rules in 2D. I used the same system of rules, exept that I
used a 3D grid. For the rules, that's completly different. For the grid, I
guess this is the same system.
For the Grid, I create three Sub loops to obtain the definition of each rows
and cols. I used Arrays. I obtain a 3D array. For each cells, I make a test
to see the cells around in the proximity of one cell. I constitute a new sub
array of the neiberhood (the function is generalized to be able to make
simulations using more than the first level of proximity.) When a cell
detect more than 9 neiber, a new cell is born.
--------------( oo )--------------
You could have a look at;
--( IDENTIFIER - RValue )-- in povray.advanced-users
--------------( oo )--------------
#declare gMaNC = 30; //Nombres de colones [Col]
blob { threshold 0.6
#declare Zow = 0;
#while (Zow < gMaNZ)
#declare Row = 0;
#while (Row < gMaNH)
#declare Col = 0;
#while (Col < gMaNC)
////////////////////////////////////////////////////////////
#if (gMa[Zow][Row][Col] != 0)
sphere { <(Row-(gMaNH/2)),
(Zow-(gMaNZ/2)),(Col-(gMaNC/2))>,
(ray/26 )/0.5
, 1 pigment { color rgb
gColor}} #end
///////////////////////////////////////////////////////////
#declare Col = Col+1;
#end
#declare Row = Row+1;
#end
#declare Zow = Zow+1;
#end
}
#debug "--------------------------------------------------(ok)\n"
--------------( oo )--------------
Architecture CAAO
"Johan De Messemaeker" <joh### [at] advalvas be> wrote in message
news:3e897d3c@news.povray.org...
>
> > Here's new Simulations. Yellow cells are alone and red cells are the
core.
> > I have made .AVI, I'll post that soon.
>
> These are great !!!! Since i'm a beginner at Povay, i really don't have a
> clue how you created these images. Could you elaborate a bit ? :-)
Post a reply to this message
|
![](/i/fill.gif) |