Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

358,962 Aufrufe • vor 1 Monat •via X (Twitter)

58 Kommentare

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

Here's high viscosity goop liquid

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

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

Profilbild von kiby3x
kiby3xvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

dont worry about that 🫡

Profilbild von Low3
Low3vor 1 Monat

Please dont add white color, i beg you

Profilbild von Low3
Low3vor 1 Monat

You did, didn't you

Profilbild von POBrevive
POBrevivevor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

tutorial? not really, more like papers:

Profilbild von Joseph Adams
Joseph Adamsvor 1 Monat

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

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

yes

Profilbild von Vladimir Cazacu | 𝕧𝕠𝕝𝕠𝕕▿
Vladimir Cazacu | 𝕧𝕠𝕝𝕠𝕕▿vor 1 Monat

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

Profilbild von RasputinKaiser
RasputinKaiservor 1 Monat

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

Profilbild von Coach Dorn || Oyaji Club
Coach Dorn || Oyaji Clubvor 1 Monat

VRC Splatoon and DrainSim. Good potential here.

Profilbild von Noosphere
Noospherevor 1 Monat

Portal 2 map incoming xD

Profilbild von Adam Kadmani
Adam Kadmanivor 1 Monat

This is the future

Profilbild von EmberBeard 🏳️‍🌈🇬🇧 NFC, CFZ, EF
EmberBeard 🏳️‍🌈🇬🇧 NFC, CFZ, EFvor 1 Monat

@GuusDeKroonVR - we need to check this out sometime 😁

Profilbild von ً
ًvor 1 Monat

watch this be used for you know what

Profilbild von Kuwazy
Kuwazyvor 1 Monat

The bandwidth required to display this for all players must be enormous.

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

Not really, sim is run locally. As long as the inputs and interaction matches it looks similar enough for people to be fooled that its synced

Profilbild von Aki 🔞
Aki 🔞vor 1 Monat

Wonder if it'd be possible to use this to do something like SpaceSim in VRChat (Example of SpaceSim: 1M Solar mass black hole eating Mercury)

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

Unfortunately it is possible, and I've been considering something like that. But I would need on top of sorting to build a sparse octree for Barns-Hut, or multipole method, that would be tricky. Much harder simulation wise than sparse hash fluid

Profilbild von Aki 🔞
Aki 🔞vor 1 Monat

Don't know about you, but I'm one of those people who love pushing a platform not made for physics deep into physics Same with mechanical engineering stuff, just seeing things move and be interactive So difficult yes, cool also yes.

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

external gravity is easy with this simulation, its just self gravity which is ass to work with due to nonlocality

Profilbild von Aki 🔞
Aki 🔞vor 1 Monat

Ah, got it. So basically VRChat is being VRChat like always, a pain in the ass to do anything cool in without having to get around a mess

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

honestly? this would be hard even outside of vrchat 😅

Profilbild von Aki 🔞
Aki 🔞vor 1 Monat

Yeah... I'll come back and reread after I get sleep so I'm not on 2% battery mode and actually comprehend things Until then imma go read up on some more whatever I was doing... I forgot

Profilbild von Tilur A Kit
Tilur A Kitvor 1 Monat

That's really cool!

Profilbild von daddy konta
daddy kontavor 1 Monat

world?

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

work in progress, release later

Profilbild von LowPolyNicky
LowPolyNickyvor 1 Monat

Add white color PLEASEEE i uhhh need it for scientific research

Profilbild von Kohei / Konoha / Saya
Kohei / Konoha / Sayavor 1 Monat

これはまだVRChatで公開されていませんか?ワールドを知りたいです

Profilbild von CCHICKEN
CCHICKENvor 1 Monat

@SadlyItsBradley Can it run on potato pc ?

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

@SadlyItsBradley potentially with a small amount of liquid

Profilbild von CCHICKEN
CCHICKENvor 1 Monat

@SadlyItsBradley Never really tried VRchat. you made me want to play it !

Profilbild von DollyDread 👻🍒50s Diner Ghost
DollyDread 👻🍒50s Diner Ghostvor 1 Monat

I wanna play in the virtual water so bad ngl

Profilbild von Wish Dragon
Wish Dragonvor 1 Monat

What the fuck

Profilbild von Cool Bandit
Cool Banditvor 1 Monat

Really strong technical work, respect.

Profilbild von adyingdeath
adyingdeathvor 1 Monat

Fiuld simulation in such a performance limited world is really an incredible work. Next step should be adding Cola fiuld into the world.

Profilbild von Dom
Domvor 1 Monat

This will 100% eventually be used for VR furry sex cum physics

Profilbild von Decima #ResignTimSweeney
Decima #ResignTimSweeneyvor 1 Monat

Great. Another thing that could crash my game.

Profilbild von Treebeast||Dishdog🇵🇸
Treebeast||Dishdog🇵🇸vor 1 Monat

millions of gallons...

Profilbild von Mogmek
Mogmekvor 1 Monat

That's waaay too cool. I seem to have very similar things under the hood, but the visualization and constants make yours look so much better

Profilbild von Look O' Me
Look O' Mevor 1 Monat

Yaaay, gooop :3333

Profilbild von jake downs
jake downsvor 1 Monat

@SadlyItsBradley this is awesome! 👏

Profilbild von Freddy
Freddyvor 1 Monat

I also implement hash, how funny

Profilbild von Leo Dutra
Leo Dutravor 1 Monat

I know what you VRChat guys are targeting with fluids. So keep up the good work.

Profilbild von Δx ⋅ Δp ≥ ℏ / 2
Δx ⋅ Δp ≥ ℏ / 2vor 1 Monat

You are having too much fun over there.

Profilbild von N
Nvor 1 Monat

How do you replicate data of 1 million particles, or it's not a concern?

Profilbild von NeubertIM 📯
NeubertIM 📯vor 1 Monat

Woah this is impressive. Even with "only" the Mentos. I dont know how VRChat works since i rather play DCV or Valheim in VR but where is the Workload of this sim? Is this Standalone VR or are there Servers from VRChat which handles the calculations? impressive video 🤩👍

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

its locally simulated, not synced. it looks similar for players, but not the "same"

Profilbild von NeubertIM 📯
NeubertIM 📯vor 1 Monat

Ah. So it is PCVR and every Chatter has its own simulation result. Still impressive. Nice work

Profilbild von Mykhailo Moroz
Mykhailo Morozvor 1 Monat

If this was a separate game it could potentially be synced, but youd likely need * Deterministic simulation, probably on CPU * Lockstep handling on all players * Exact matching of simulation inputs between players

Ähnliche Videos