In order to implement fluid simulation we need to implement conservation of mass, incompressibility, and conservation of momentum. How to do this, using Eulerian cell representation, on GPU shaders?
Пікірлер: 55
@mikhailhumphries2 күн бұрын
Can't believe I watched entire video about coding and didn't get bored
@Kevin-jz9bg5 күн бұрын
That was one of the best explanations for advection I've seen online! Especially the pushing bubbles out of a phone screen protector analogy.
@rlhugh5 күн бұрын
Thank you very much! Very much appreciated :)
@samaltschul46055 ай бұрын
Hugh, the standard first book on PDE is Walter Strauss's book. If you want to try questions on me I'm happy to help out.
@SpeedyGwen3 күн бұрын
first thing I thought about when I clicked on this video is about The Powder Toy which is a pixel based particle simulator game which actually has that exact same type of fluid simulation for simulating air in the game
@rlhugh3 күн бұрын
Interesting! Thank you!
@Cmanorange4 ай бұрын
very good video. i'm glad you showed or mentioned what approaches didn't work
@anonymouscommentator5 күн бұрын
loved the video! feels like discovering sebastian lagues yt channel all over again :)
@rlhugh5 күн бұрын
Wow, that's a very nice thing to say. I feel like I can die happy now. I mean, unfortunately this is my least bad video to date, and you will be disappointed if you watch any of my others, but it's still very nice to hear these words :)
@hyperFixationStudios5 ай бұрын
Great work, I can't wait to see your next simulations!
@santiagobirkenstock14 күн бұрын
I wish the very best on KZfaq, I am so glad I discovered your channel. Keep up the good work !
@justinsciullo334212 күн бұрын
This is so cool, and you did a great job with the video editing! I hope you make more videos like this!
@rlhugh12 күн бұрын
Thank you! That's very kind to say. Very much appreciated :)
@PAPERSCHOOL5 ай бұрын
Really well produced, nice work
@Theo-iz5cj4 ай бұрын
Great and inspiring video, thanks a lot!
@HitAndMissLab12 күн бұрын
Thanks for the beautiful video.
@veritas70106 күн бұрын
I love this, thank you for makin my day on yt much better!
@rlhugh6 күн бұрын
Thank you very much!
@CalcWithDec16 күн бұрын
Beautiful!
@benjaminlehmann9 күн бұрын
I loved this video! Really inspiring, and I'm sort of amazed that this was running on a macbook air too - great job :D Thanks so much for sharing.
@rlhugh9 күн бұрын
Thank you very much!
@tommycard45699 күн бұрын
educational and entertaining! loved it, thank you
@rlhugh9 күн бұрын
Thank you!
@saadahmed6885 ай бұрын
Subbing cause I wanna see you simulate the inside of Earth. Great content
@Kyler1Ace3 ай бұрын
Great video
@tahmidchoudhury89465 ай бұрын
Got recommended.....now in love
@Tordek11 күн бұрын
regarding the parallel part: would it be feasible to work the opposite way? Instead of writing to 4 cells, each cell would instead read from 4 neighbors and update itself.
@janerikjakstein7 сағат бұрын
Awesome 👍
@rlhugh2 сағат бұрын
Thank you!
@sapiosuicide15526 күн бұрын
Cool
@josiahjoel758024 күн бұрын
this is so cool, is it possible to upload the source code to a public repo?
@naztar4323Күн бұрын
You could have used MultiGrid for the solver since it land it self to parallelism better
@rlhugh17 сағат бұрын
Yes. Potentially a topic for a next video :)
@tselhamishac591016 сағат бұрын
Nice
@rlhugh16 сағат бұрын
Thank you!
@NobodyYouKnow013 күн бұрын
No way Euler got named for a fluid dynamics problem. We're supposed to name the problem after the *second* person to solve it!
@drpwnage233 ай бұрын
This is really cool. Do you have a github repo available for this?
@rlhugh3 ай бұрын
I probably should do that yeah...
@cashkurtz57804 күн бұрын
So persistent zero velocity is like a solid object? I wish it were easier to see it against an unmoving background .
@rlhugh4 күн бұрын
Yes, that's right. As far as the coloring scheme, definitely open to suggestions. Won't affect this video, since cannot modify published videos. But could be useful for future videos.
@redstoneready69723 күн бұрын
do you think this could be used for electromagetics?
@rlhugh23 күн бұрын
Interesting question!
@YaofuZhou19 күн бұрын
Depending on what you want. I guess you want to iteratively compute the EM fields?
@kwccoin311511 күн бұрын
How do you run these shader ? Can it use under sdl2?
@rlhugh11 күн бұрын
These are running in Unity, using HLSL.
@nomoregoodguy66395 күн бұрын
wait you need a macbook pro to do pro stuff?? (looks sexy)
@rlhugh5 күн бұрын
I'm using a MacBook air m2
@tomd641013 күн бұрын
Love this but if that’s how you say Euler I’ve been saying it wrong all this time 💀💀
@rlhugh13 күн бұрын
I did research the pronunciation. There are a couple of ways. Before I researched the pronunciation, I was saying "you lurr Ian". But "oiler Ian" appeared to be more common, as far as I could see? How are you thinking if should be pronounced?
@tomd641013 күн бұрын
@@rlhugh I’ve been saying youll-lah 😅
@rlhugh13 күн бұрын
@@tomd6410 actuuaaalllyyy seems that it might depend on us vs UK pronunciation, eg see youglish.com/pronounce/eulerian/english/uk
@unepintade10 күн бұрын
@@tomd6410i feel like "name"-ian in English are pronounced very differently from how you pronounce the name so while Euler is pronounced weirdly, eulerian is pronounced how you would expect, like Laplace and Laplacian