Skip to content
/ 3D_CA Public

Simulating 3D Cellular Automaton use openGL program.

License

Notifications You must be signed in to change notification settings

AkkyOrz/3D_CA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D_CA (3D cell automaton)

This is an extension of Conway's Game of Life, which is a type of cellular automaton. We made it look good by implementing something different from traditional life games, such as expanding into 3D space, changing the number of states, and adding the concept of lifespan. In addition, you can edit cells and change the cell update speed by keyboard input.

Sample movie is here

movie

install OpenGL

$ sudo apt-get install libglu1-mesa-dev mesa-common-dev freeglut3-dev

install OpenMP

$ sudo apt install libomp-dev

install OpenCL

$ sudo apt install clinfo
$ sudo apt install ocl-icd-libopencl1
$ sudo apt install opencl-headers
$ sudo apt install ocl-icd-opencl-dev

Compile

Normal mode

$ make
$ ./3D_LifeGame

Use OpenMP

$ make ACC=mp
$ ./3D_LifeGame

Use OpenCL

$ make ACC=cl
$ ./3D_LifeGame

How to manupulate follows the top left of the motion screen.

Normal mode

Input key action
v Shifting to automatic movement mode/returning to normal mode
s stop/resume
r Initialization of the sell status
f Faster
d Slower
l Camera position reset
c Changing the state at cell initialization
n Color change
e Edit mode
q Quit

Edit mode

Input key action
i/o z-axis move
up down left right array x,y-axis 2D move
p change sell state

License

The code is licensed under the MIT license.

About

Simulating 3D Cellular Automaton use openGL program.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published