Giter Club home page Giter Club logo

ant-simulation's Introduction

This is a project by Jan Goličnik

Basically I made a simulation.

How it works

We spawn in 1 000 000 little agents that all leave pheromones behind when they move. They can also sense some distance left and right at some angle. We can control two species and how they interact, mainly if their peromones repel or attract each other, but it also affects their color :)

Setup

This was coded in Visual Studio in C++ using OpenGL, glfw, glm and imGui. In the root folder there is a shortcut called ant sim which should start the simulation. It hasnt been tested on many machines so performance or bugs may vary depending on your setup. If the window holding the simulation window is outside the main window please dock it in place (drag it to the center). You should then be ready to mess around with the controls.

The controls

Please expand the controls panel if you cant see everything. All the setting should be properly documented in app so please refer to that. Don't be afraid to mess around with the values a lot, especially with sense angle, as that is where most of the fun is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.