This is a project for simulating Lenia particles using CUDA and OpenGL. The simulation involves particles interacting with each other via the Lenia potential The simulation is visualized using OpenGL.
The Lenia simulation project is a GPU-accelerated simulation that models the behavior of particles in a 2D environment. The simulation calculates the particle interactions over time, producing a visual representation of the system.
Before running the simulation, ensure you have the following prerequisites installed:
- OpenGL - for rendering the simulation graphics.
- GLEW - the OpenGL Extension Wrangler Library.
- freeglut - an open-source alternative to the GLUT library for creating and managing windows.
- CUDA - the NVIDIA GPU computing platform.
To get started with the Heat Equation Simulation, follow these steps:
-
Clone this repository:
git clone git@github.com:pablogsal/cuda_lenia.git
-
Navigate to the project directory:
cd cuda_lenia
-
Build the project using a CMake. Make sure to link the necessary libraries (OpenGL, GLEW, CUDA).
mkdir build cd build cmake .. make
-
Run the compiled executable:
./lenia_particles
- Upon running the simulation, a window will appear showing the evolving of the particles.
- The simulation will continue until you close the window or terminate the program.
- You can adjust simulation parameters and initial conditions in the
main
function, such as the number of particles, simulation size, and simulation constants.
This project is licensed under the MIT License - see the LICENSE file for details.