Skip to content
/ alien Public
forked from chrxh/alien

alien is a GPU-accelerated artificial life simulation program.

License

Notifications You must be signed in to change notification settings

llbn/alien

 
 

Repository files navigation

Artificial Life Environment (ALiEn) is an artificial life simulation tool based on a specialized 2D particle engine in CUDA for soft bodies and fluid-like media. Each simulated body consists of a network of smart particles that can be enriched with higher-level functions, ranging from pure information processing capabilities to physical equipment (such as sensors, actuators, weapons, constructors, etc.) whose executions are orchestrated by a signaling system. The bodies can be thought of as agents or digital organisms operating in a common environment.
An important goal is to make the simulator user-friendly through a modern user interface and a playful approach.

Note: This branch contains ongoing work for the next major release. For the latest stable version, please visit the master branch.

Main features

Physics and graphics engine

  • Particles for simulating soft body mechanics, heat dissipation, bondings, damages, phase transitions, etc.
  • Real-time user interactions with running simulations
  • Simulation runs entirely on GPU via CUDA
  • Rendering and post-processing via OpenGL using CUDA-OpenGL interoperability

Artificial Life extensions

  • Programmable particle actions for simulating digital organisms and studying evolution
  • Information and energy transportation layer between connected particles
  • Built-in graph editor and scripting environment for designing customized machines and worlds

The simulation code is written entirely in CUDA and highly optimized for large-scale real-time simulations of millions of bodies and particles. The development is driven by the desire to better understand the conditions for (pre-)biotic evolution and the growing complexity of biological systems.

But for what is this useful?

  • A first attempt to answer: Feed your curiosity by watching evolution at work! As soon as self-replicating machines come into play and mutations are turned on, the simulation itself does everything.
  • Perhaps the most honest answer: Fun! It is almost like a game with a pretty fast and realistic physics engine. You can make hundreds of thousands of machines accelerate and destroy with the mouse cursor. It feels like playing god in your own universe with your own rules. Different render styles and a visual editor offer fascinating insights into the events. There are a lot of videos on the YouTube channel for illustration.
  • A more academic answer: A tool to tackle fundamental questions of how complexity or life-like structure may arise from simple components. How do entire ecosystems adapt to environmental changes and find a new equilibrium? How to find conditions that allow open-ended evolution?

Further information and artworks

Minimal system requirements

An Nvidia graphics card with compute capability 6.0 or higher is needed. Please check https://en.wikipedia.org/wiki/CUDA#GPUs_supported.

How to build the sources

The build process is mostly automated using the cross-platform CMake build system and the vcpkg package manager, which is included as a Git submodule.

Getting the sources

To obtain the sources, please open a command prompt in a suitable directory (which should not contain whitespace characters) and enter the following command:

git clone --recursive https://github.com/chrxh/alien.git

Note: The --recursive parameter is necessary to check out the vcpkg submodule as well. Besides that, submodules are not normally updated by the standard git pull command. Instead, you need to write git pull --recurse-submodules.

Build instructions for Windows

Prerequisites: CUDA Toolkit 11.2+ and Visual Studio 2019 (or an alternative tool chain)

Build steps:

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release

If the compilation was successful, the alien executable is located in:

.\Release\alien.exe

Build instructions for Linux

Prerequisites: CUDA Toolkit 11.2+ and GCC 9.x+

Build steps:

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8

If everything goes well, the alien executable can be found under the build directory:

./alien

Installer

An installer for 64-bit binaries is provided for Windows 10: download link.

In the case that the program crashes for an unknown reason, please refer to the troubleshooting section in alien-project.org/downloads.html.

Documentation

Please visit alien-project.org for a documentation of the program and the underlying model. It contains many brief tutorials that guide the reader into the program in small portions.

Screenshots

Startup screen

Evolving self-replicating machines in action

Explosion inside a large grid of robots

Statistics tools

Visual editor and scripting environment (under development, screenshot is from previous version)

License

alien is licensed under the GPLv3.

About

alien is a GPU-accelerated artificial life simulation program.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 51.1%
  • Cuda 45.9%
  • C 1.5%
  • CMake 1.1%
  • GLSL 0.4%