Skip navigation
I'm slowly porting my approximate grid SPH simulation to VRChat.
0:00 / 1:12

I'm slowly porting my approximate grid SPH simulation to VRChat.

Mykhailo Moroz

@Michael_Moroz_13K followers

Visit on X
551 likesDownloadOriginal post

27,844 views

I'm slowly porting my approximate grid SPH simulation to VRChat. It did require few improvements to be stable enough, now its a hybrid neighbor index/particle average grid. Still need to implement d4rkpl4y3r's mip counting sorting method for improved performance.

6 Comments

Comments from the original post on X (Twitter)

  • Mykhailo Moroz's profile picture

    @Michael_Moroz_

    The grid now stores the minmax id's of the particles in this cell, its done by rasterizing points with vec2(id, N-1-id) with min blending (to get min and max). If a particle didn't get into this grid, its afterwards additively rasterized into another average particle grid.

    1 like

  • Mykhailo Moroz's profile picture

    @Michael_Moroz_

    But other than that its very similar to my old VRChat fluid sim, except now I can have proper separate particles with their own data that isn't lost (like color in the video) (also I no longer use Custom Render Targets (they are cursed))

    2 likes

  • Mykhailo Moroz's profile picture

    @Michael_Moroz_

    cc @shr_id P.S. the (arguably cursed) mip map prefix sum method

    6 likes

  • Ivan Bozhenko's profile picture

    @IvanBozhenko

    @d4rkpl4y3r_vr Дуже круто , кожного разу дивуюсь від того що ви робите

    1 like

  • Nuance's profile picture

    @CygnusSlaughter

    @d4rkpl4y3r_vr That acronym is taken Don't google it

  • CodeRabbit's profile picture

    @coderabbitai

    AI-first pull request reviewer with context-aware feedback, line-by-line code suggestions, and real-time chat.

    584 likes