View Full Version : Life 3D alfa
Here it is,
But it looks more like broccoli's in space ;-)
This time it calculates all the neighbouring cells (3³-1), and makes an evaluation - survives, dies or born -- however I added something extra , (second line of the frequency eval) .. the number 13 -- it's there to make some chaos into the system. However these mutants only have a short life.
Again better first try the exec. file.
best Rob
Very cool!
It would be neat if the generations were different shades, lighter to darker or reversed.
Also to show the generation count in the titlebar.
ErosOlmi
06-11-2013, 01:01
Fantastic but ... it's too fast :D
Thanks Eros, Kryton9
OK .. population count added (however this for the complete 30³ cube - only a part is shown).
And (while Oxygen is fast enough for such things) - a colourmatrix is set up - keeping the count of the age of the cells. They will turn from green (the fresh ones) to brownish red , but the reds are also in a cycle, to give an idea about the age of the parts of a cluster.
Oxygen is fast and adding those few lines only took a little time in TB !
best Rob,
(exec with the oxygen.dll included) - ah, yes -- one can still use space to accelerate things if needed ....
Petr Schreiber
07-11-2013, 10:22
The color coding is great idea!
Little tip, changing the 2 lines after tbgl_PrintFont to the following will make the "body" rotate ~centered:
TBGL_Rotate hk , 0 , 1 ,0
TBGL_Translate -14,-14,-8
Changing the hk addition to the following will make the speed consistent across multiple PCs (in this case 25 degrees/second):
hk += 25/FrameRate
Petr
Hi Petr,
Yep, that's a better presentation ...
Maybe 5/FrameRate is nicer ? (attached ... with the colouring the "dynamic" clusters are more obvious .. but it seems only around 5% is one of these).
Your brainchild only does solid spheres ? ... think to remember (from GFA) there was something as GluWireSphere ... ?)
best (& thanks) Rob -- maybe when (Life 3D) the chaos is over, we can shoot some cells into the heap ;-)
Petr Schreiber
07-11-2013, 20:52
Hi Rob,
you can ask my brainchild to render wire by using the:
TBGL_LineWidth 2 ' -- Or any other number, in pixels
TBGL_PolygonLook %GL_LINE
You can disable the wire rendering later by using:
TBGL_PolygonLook %GL_SOLID
Petr
Anyone else getting an error when running from thinAir, the last version?
The .exe runs fine.
ErosOlmi
08-11-2013, 08:44
Kent,
I think I need to release an updated thinBasic version with the latest Oxygen from Charles.
I will do it by tomorrow.
Ciao
Eros
Charles Pegge
08-11-2013, 14:53
I posted an Uxygen update yesterday PM.
http://www.thinbasic.com/community/showthread.php?t=12175
May I include a couple of your programs in the examples folder, Rob?
Thanks Petr,
Charles, sure -- attached a more recent Life 3D file -- it does more "slices" than previous one (and a few other scripts included). Eros made a very nice tweaked version of those Julia fractals -, something very attractive.
For those wondering (Life3D) why they are singles , doublets and triplets near the borders - this is because the the program does not evaluate the edges , the problem is to define the i-1 neighbour for a cell at position i=1. This is an interesting problem ;-) The perfect solution should be that left touches right and top -> bottom - a solution from a non-Euclidian world -- lines are just big circles , u c ... (not 100% exact either ... but .. )
best Rob