跳过导航
130,000 balls in godot
0:00 / 0:53

130,000 balls in godot

Late as usual 🏳️‍⚧️

@lateasusual_6.3万 位关注者

在 X 上查看
495 个赞下载原帖

35,960 次观看

130,000 balls in godot

12 条评论

评论来自 X (Twitter) 上的原帖

  • 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 个赞

  • 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 个赞

  • 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 个赞

  • Late as usual 🏳️‍⚧️ 的头像

    @lateasusual_

    i legit forgot to add colour lol

    10 个赞

  • Foggy 的头像

    @FoggyDudey

    Big things happening in the ballpit game industry...

    3 个赞

  • Ziva.sh 的头像

    @Ziva_Sh

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

    1 个赞

  • Ben Pielstick 的头像

    @BenPielstick

    Replace balls with goblins.

  • illumisanic 的头像

    @illumisanicgltf

    officer balls

  • prison purse 的头像

    @COMMIESHITEATER

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

  • Thicckerson 的头像

    @Thicckerson

    I only got 2

  • X 🇷🇴 的头像

    @GreyAreaDsgn

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

  • DimentionalStudio 的头像

    @Dimentional06

    pretty cool, is that using the Jolt physics Engine ?