Program in which user-built shapes learn how to walk using neural network brains while also evolving trough genetic algorithm. First implementation is in python with pytorch, not in real time. Second one is in C++ using OpenGL with compute shaders, in real time.
Performance:
- 4.000.000 shapes drawn at 60FPS
- 1.000.000 shapes drawn at 60FPS including physics calculation for each one
- 100.000 shapes drawn at 60FPS including physics,neural network passes and evolution for each one. (n^3 matrix multiplication, could be much faster)
This is a visualization of generations of creatures. As time progresses they become better and better at going to the right.
the left column is the best creature of the generation, the right column is the sample of the population
|
|
|
|
|
|
|
|
Spiders
Tigraf.-.Genetic.Algorithm.mp4
Bipeds







