Navigation überspringen
130,000 balls in godot
0:00 / 0:53

130,000 balls in godot

Late as usual 🏳️‍⚧️

@lateasusual_63.204 Follower

Auf X besuchen

35.960 Aufrufe

130,000 balls in godot

12 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Late as usual 🏳️‍⚧️

    @lateasusual_

    it's all on the GPU (Rust gdext + Slang), copying over the particles from a custom sim into a multimesh buffer for rendering. Kind of my first time doing these on gpu so i tried a few different spatial hashing solutions and landed on just randomly assigning to a world space grid

    19 Likes

  • Profilbild von Late as usual 🏳️‍⚧️

    @lateasusual_

    rather than bothering with a fixed grid shape that scales to the bounds of the simulation, it just repeats the grid in world space and the index into the flat buffer is hashed, so it's probably bad for cache performance but means way lower contention

    6 Likes

  • Profilbild von Late as usual 🏳️‍⚧️

    @lateasusual_

    Here's the shader code in case that's of any interest. I'm not going to bother sharing the CPU side, it should be pretty self explanatory.

    15 Likes

  • Profilbild von Late as usual 🏳️‍⚧️

    @lateasusual_

    i legit forgot to add colour lol

    10 Likes

  • Profilbild von Foggy

    @FoggyDudey

    Big things happening in the ballpit game industry...

    3 Likes

  • Profilbild von Ziva.sh

    @Ziva_Sh

    Really impressed you got this to run without lag. The future of Godot development is bright!

    1 Like

  • Profilbild von Ben Pielstick

    @BenPielstick

    Replace balls with goblins.

  • Profilbild von illumisanic

    @illumisanicgltf

    officer balls

  • Profilbild von prison purse

    @COMMIESHITEATER

    Godot noob here, how do you manipulate the scene like that

  • Profilbild von Thicckerson

    @Thicckerson

    I only got 2

  • Profilbild von X 🇷🇴

    @GreyAreaDsgn

    not sure how to take this post... is it about 3d stuff or leftist activism given that transvestite flag of yours...

  • Profilbild von DimentionalStudio

    @Dimentional06

    pretty cool, is that using the Jolt physics Engine ?