Skip to content

epitron/PyCl-Convergence

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCl-Convergence

Python/OpenCl Cellular Automata explorer

I encourage anyone who is willing to contribute to this code do so: Fork the Github repository and upload your successive changes!

Dependencies:

  • sudo apt-get install python-pyopencl

  • sudo apt-get install python-scipy

  • sudo apt-get install python-tk

  • sudo apt-get install python-pygame

OpenCL CPU Framework:

AMD

Intel

GPU OpenCL compatibility:

nvidia:

  • sudo apt-get install nvidia-opencl-dev

AMD:

  • Pending ... Message me at reddit's /u/slackermanz if you have compatibility suggestions!

A "Litmus Test":

If your machine can run GPU-accelerated simulations with https://code.google.com/p/reaction-diffusion/ it should also be able to run this program.

Once that is set up...

Open the terminal in './PyCl-Convergence/ConwayCL-Final'

Run the Python script './PyCl-Convergence/ConwayCL-Final/main.py' in the terminal with: 'python main.py'

  • Spam the ENTER key to use default settings

  • Right Click to toggle pause

  • Click the scrollwheel or press 'R' key to restart/reseed world

  • 'Forward' mouse button or 'E' key to change rule

  • 'Back' mousebutton or 'T' key to use a Bitmap image seed

  • 'Q' key to toggle image-capture recording (creates a series of Avidemux-compatible Bitmaps)

  • 'P' to wipe the screen clear of all living cells

  • 'F' to toggle use of 'Photographic' filter

  • 'I' to toggle use of 'Game Mode' (Prerequisite: 'F' for Filter Mode must be on)

  • '0' through '9' to load a rule from the 'RulePlaylist' file

There's Three Modes: DRAW, VIEW, and GAME

DRAW (Typical Default)

  • Scrollwheel to increase Drawn Square Size

  • 'SPACEBAR' to toggle DRAW or VIEW modes

VIEW

  • 'SPACEBAR' to toggle DRAW or VIEW modes

  • The game world will become centered on the mouse location

  • Scrollwheel to Zoom in or out

GAME (Temporarily Default Override)

  • 'I' to toggle use of 'Game Mode'

  • Spacebar or Left Click to shoot at the Mouse Position

  • 'F' to toggle use of 'Photographic' filter

About

Python/OpenCl Cellular Automata design & manipulation tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Common Lisp 72.4%
  • C 18.0%
  • Cool 9.2%
  • Python 0.4%