跳过导航
So I've implemented hash grid based fluid simulation in VRChat - its absolutely incredible.
0:00 / 1:09

So I've implemented hash grid based fluid simulation in VRChat - its absolutely incredible.

Mykhailo Moroz

@Michael_Moroz_1.3万 位关注者

在 X 上查看
4,984 个赞下载原帖

359,926 次观看

So I've implemented hash grid based fluid simulation in VRChat - its absolutely incredible. Because its hash based its literally boundless, so fluid can occupy the entire world. Currently I only have the "Mentos" particle rendering, but I plan on trying to make isosurface work

58 条评论

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

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    Its absolutely mental when you set gravity to low, fluid literally flyes everywhere

    143 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    I have put 1M particles as limit in the world for now, which can fill a decently large space

    99 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    I've also added a bunch of "manipulator" objects, like this attractor sphere, you can make globes of fluid

    82 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    Here's high viscosity goop liquid

    143 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    Inverting gravity direction is also quite insane when you dont have bounds

    80 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    I've also been improving the isosurface ray tracer, make it a bit more PBR based, also basic screen space effects. Its currently only functional in bounded simulation mode. Making it work in hash sparse boundless would be the next problem. Not sure if even feasible with good perf

    101 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    Regarding the technical side, I think hash based particle simulation is much better than sparse tree grid based one, sparse tree's require indirections to get neighbor, while with hash grids the only drawback is hash collisions, but the bottleneck is latency so its much better

    34 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    Making a hash based grid however is tricky, I think I'm going to try making a "N-slot texture" where each sparse cell can hold up to N voxels, it should hopefully work most of the time if the "hash" has few collisions. But yeah making it ray trace fast is tricky

    26 个赞

  • kiby3x 的头像

    @Kiby3Xbs9h

    Soo what exactly do you expect vrchat players to do with a fluid sim...

    40 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    dont worry about that 🫡

    59 个赞

  • Low3 的头像

    @MrLow3

    Please dont add white color, i beg you

    33 个赞

  • Low3 的头像

    @MrLow3

    You did, didn't you

  • POBrevive 的头像

    @POBrevive5d

    How did he made the water physics work I mean is there a tutorial for it

    13 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    tutorial? not really, more like papers:

    62 个赞

  • Joseph Adams 的头像

    @TheTTTETET

    VR chat? How many request for a sticky white version you got so far?

    6 个赞

  • Mykhailo Moroz 的头像

    @Michael_Moroz_

    yes

    10 个赞

  • Vladimir Cazacu | 𝕧𝕠𝕝𝕠𝕕▿ 的头像

    @volodXYZ

    Will you be releasing this anywhere? I'd love to learn from your work.

    3 个赞

  • RasputinKaiser 的头像

    @RasputinKaiser

    Hi! I've been working on a very similar thing with ThreeJS + Box3D! This is MIT

    3 个赞

  • Coach Dorn || Oyaji Club 的头像

    @CoachDorntastic

    VRC Splatoon and DrainSim. Good potential here.

    2 个赞

  • Noosphere 的头像

    @NoosphereVR

    Portal 2 map incoming xD

    2 个赞