Our great sponsors
-
particle-life
A simple program to simulate artificial life using attraction/reuplsion forces between many particles
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
This is much much better, but I did an implementation of this using compute shaders in Godot 4, if that's interesting to folks!
https://github.com/jasonjmcghee/compute-shaders
Super cool! Earlier this year I created a zero-player simulation using pygame and several AI coding assitants to see how capable they might be. In the end I had to clean up alot, but Im happy with how it turned out.
https://github.com/derekburgess/simcraft
That's a funny coincidence, I recently made something similar: https://webgl-particle-life.netlify.app/ (source: https://github.com/ath92/particle-life)
This version does everything in webgl shaders and keeps all state for the simulation in textures / uniforms. This allows it to simulate and draw more particles. Unfortunately it may not run on all devices because it uses some less supported webgl extensions.
https://github.com/bezdomniy/rust_particles
you can run it with: cargo run --release
No input yet, just randomly initialises params each run. But it runs with 4000 particles on my machine.
That's impressive.
I had a similar concept in mind when I started experimenting in 3D with what I now call "Altphy" (alternative physics), but I've not been able to really make it work as intended (really, is far from working). Also probably the logic and idea behind it too much for real time processing. I'm sharing it only because maybe pieces of that code (or the idea itself) can progress into something one day.
source: https://github.com/aDeveloperCase/altphy
Related posts
- How to test Client/Server-networking without players? Particle Life!
- Create and Breed Artificial Life. An Interactive Particle Life (Online live demo + source code are in the comment)
- Create and Breed Artificial Particle Life with plain JavaScript (Source code & Tutorial available in the comment)
- How to Register a Smart Contract to Mode SFS with Thirdweb
- ClangQL: A tool to run SQL-like query on C/C++ Code