Navigation überspringen
Recently I've been exploring how simple rules can create lifelike emergent beauty.
0:00 / 1:02

Recently I've been exploring how simple rules can create lifelike emergent beauty.

Simon Harris

@SimonHarrisCo1488 Follower

Auf X besuchen

271.102 Aufrufe

Recently I've been exploring how simple rules can create lifelike emergent beauty. Under the hood there is a 28,000 agent simulation with seasonal migratory and reproductive behaviour.

47 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Shekhar Upadhaya

    @_usernamed_

    Looks neat! I also made an app that sort of does that with camera

    15 Likes

  • Profilbild von Simon Harris

    @SimonHarrisCo

    hey cool effect! is it done in compute

  • Profilbild von Shekhar Upadhaya

    @_usernamed_

    Yes, you can check it out here: (:

    3 Likes

  • Profilbild von Maximillian Piras

    @MVXMXM

    1) what 2) cool

    2 Likes

  • Profilbild von TheBooooy

    @JohnFStifter

    That is visually a very nice idea to have the quadrants cells of the newly divided Octree flash white like that, I'm making mine evalute faster & have the camera fly into it like a canyon mandelbrot set style.

    2 Likes

  • Profilbild von Wil Chung

    @iamwil

    What do the different size square mean? What does the fill mean? How does it connect to Conway's version?

    2 Likes

  • Profilbild von Simon Harris

    @SimonHarrisCo

    Hey Wil, its unrelated to conways game - just similar aesthetics. The smaller the cube, the greater density of the agents, then they move away from a section the grid 'undivides' and when you have lots of tiny cubes there is a large density of agents there.

    9 Likes

  • Profilbild von Pietro Casella

    @PietroCasella

    Cool stuff. In case you haven’t, you should look into Conways game of life there’s tons of stuff on this topic - big rabbit hole of mine 20 years ago. Also fractals of course and visualizing ant colony optimization algorithms. There’s also very cool stuff on bird swarm simulation - murmurarion and crowd simulation. Same principle - simple local behavior leading to beautiful emergent behavior. Happy coding!

    2 Likes

  • Profilbild von Julien Eyraud

    @EyraudJulien

    C'est beau

    2 Likes

  • Profilbild von Anna / ArtMonochrome2

    @ArtMonochrome2

    It’s beautiful Simon!

    1 Like

  • Profilbild von Simon Harris

    @SimonHarrisCo

    Thank you Anna 🖤

    1 Like

  • Profilbild von gsimone

    @ggsimm

    can you explain some of the rules? Like, why is the quadtree splitting and merging etc? It looks amazing

    1 Like

  • Profilbild von Simon Harris

    @SimonHarrisCo

    yeah man there are 28k 'individual agents' on the grid, attracted or repelled based on current 'season', with a bit of herding logic also. the quadtree represents agent density - many small squares means many agents, subdiving to make room, and then rejoining when they leave. runs 60fps realtime thanks to webgpu compute

    1 Like

  • Profilbild von gsimone

    @ggsimm

    ah so the bigger squares are big "heards" and then they split into multiple based on seasons?

  • Profilbild von gsimone

    @ggsimm

    actually the other way around -> no agents = big square, otherwise subdivide to represent the herds

    1 Like

  • Profilbild von Simon Harris

    @SimonHarrisCo

    yesss exactly

    1 Like

  • Profilbild von john !

    @onlytruejohn

    this is so insanely cool ! dropping a follow to see what you’ll come up with next :))

    1 Like

  • Profilbild von lush

    @lush_amorelli

    @marcinignac 28,000 agents? Hmm

    1 Like

  • Profilbild von Simon Harris

    @SimonHarrisCo

    @marcinignac 'agents' meaning: - individual actor computing its own outcomes not: - ai agent running an llm. its a simple algo running in compute shaders :D

    7 Likes

  • Profilbild von Tim Hughes

    @timducktim

    @lush_amorelli @marcinignac yeah soz i take the L on this, i was coming out of a meeting only had LLM's on brain hahaha - apologies my guy

    1 Like