POV-Ray : Newsgroups : povray.binaries.images : --( Cellular Automata )-- : Re: --( v2)--( Cellular Automata )-- Server Time
13 Aug 2024 17:29:54 EDT (-0400)
  Re: --( v2)--( Cellular Automata )--  
From:
Date: 1 Apr 2003 09:01:15
Message: <3e899bab@news.povray.org>
--------------( 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] advalvasbe> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.