GitXplorerGitXplorer
p

cuda_lenia

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
54a2d5d0e9b68a05ccf6e02647dd4ecab92273e3

Fiat lux

ppablogsal committed a year ago

README

The README file for this repository.

Lenia particle simulation

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.

Table of Contents

Introduction

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.

Prerequisites

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.

Getting Started

To get started with the Heat Equation Simulation, follow these steps:

  1. Clone this repository:

    git clone git@github.com:pablogsal/cuda_lenia.git
  2. Navigate to the project directory:

    cd cuda_lenia
  3. Build the project using a CMake. Make sure to link the necessary libraries (OpenGL, GLEW, CUDA).

    mkdir build
    cd build
    cmake ..
    make
  4. Run the compiled executable:

    ./lenia_particles

Usage

  • 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.

License

This project is licensed under the MIT License - see the LICENSE file for details.