Real-time Eulerian fluid simulation on a Macbook Air, using GPU shaders

  Рет қаралды 32,931

RL Hugh

RL Hugh

5 ай бұрын

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
@mikhailhumphries
@mikhailhumphries 2 күн бұрын
Can't believe I watched entire video about coding and didn't get bored
@Kevin-jz9bg
@Kevin-jz9bg 5 күн бұрын
That was one of the best explanations for advection I've seen online! Especially the pushing bubbles out of a phone screen protector analogy.
@rlhugh
@rlhugh 5 күн бұрын
Thank you very much! Very much appreciated :)
@samaltschul4605
@samaltschul4605 5 ай бұрын
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.
@SpeedyGwen
@SpeedyGwen 3 күн бұрын
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
@rlhugh
@rlhugh 3 күн бұрын
Interesting! Thank you!
@Cmanorange
@Cmanorange 4 ай бұрын
very good video. i'm glad you showed or mentioned what approaches didn't work
@anonymouscommentator
@anonymouscommentator 5 күн бұрын
loved the video! feels like discovering sebastian lagues yt channel all over again :)
@rlhugh
@rlhugh 5 күн бұрын
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 :)
@hyperFixationStudios
@hyperFixationStudios 5 ай бұрын
Great work, I can't wait to see your next simulations!
@santiagobirkenstock
@santiagobirkenstock 14 күн бұрын
I wish the very best on KZfaq, I am so glad I discovered your channel. Keep up the good work !
@justinsciullo3342
@justinsciullo3342 12 күн бұрын
This is so cool, and you did a great job with the video editing! I hope you make more videos like this!
@rlhugh
@rlhugh 12 күн бұрын
Thank you! That's very kind to say. Very much appreciated :)
@PAPERSCHOOL
@PAPERSCHOOL 5 ай бұрын
Really well produced, nice work
@Theo-iz5cj
@Theo-iz5cj 4 ай бұрын
Great and inspiring video, thanks a lot!
@HitAndMissLab
@HitAndMissLab 12 күн бұрын
Thanks for the beautiful video.
@veritas7010
@veritas7010 6 күн бұрын
I love this, thank you for makin my day on yt much better!
@rlhugh
@rlhugh 6 күн бұрын
Thank you very much!
@CalcWithDec
@CalcWithDec 16 күн бұрын
Beautiful!
@benjaminlehmann
@benjaminlehmann 9 күн бұрын
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.
@rlhugh
@rlhugh 9 күн бұрын
Thank you very much!
@tommycard4569
@tommycard4569 9 күн бұрын
educational and entertaining! loved it, thank you
@rlhugh
@rlhugh 9 күн бұрын
Thank you!
@saadahmed688
@saadahmed688 5 ай бұрын
Subbing cause I wanna see you simulate the inside of Earth. Great content
@Kyler1Ace
@Kyler1Ace 3 ай бұрын
Great video
@tahmidchoudhury8946
@tahmidchoudhury8946 5 ай бұрын
Got recommended.....now in love
@Tordek
@Tordek 11 күн бұрын
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.
@janerikjakstein
@janerikjakstein 7 сағат бұрын
Awesome 👍
@rlhugh
@rlhugh 2 сағат бұрын
Thank you!
@sapiosuicide1552
@sapiosuicide1552 6 күн бұрын
Cool
@josiahjoel7580
@josiahjoel7580 24 күн бұрын
this is so cool, is it possible to upload the source code to a public repo?
@naztar4323
@naztar4323 Күн бұрын
You could have used MultiGrid for the solver since it land it self to parallelism better
@rlhugh
@rlhugh 17 сағат бұрын
Yes. Potentially a topic for a next video :)
@tselhamishac5910
@tselhamishac5910 16 сағат бұрын
Nice
@rlhugh
@rlhugh 16 сағат бұрын
Thank you!
@NobodyYouKnow01
@NobodyYouKnow01 3 күн бұрын
No way Euler got named for a fluid dynamics problem. We're supposed to name the problem after the *second* person to solve it!
@drpwnage23
@drpwnage23 3 ай бұрын
This is really cool. Do you have a github repo available for this?
@rlhugh
@rlhugh 3 ай бұрын
I probably should do that yeah...
@cashkurtz5780
@cashkurtz5780 4 күн бұрын
So persistent zero velocity is like a solid object? I wish it were easier to see it against an unmoving background .
@rlhugh
@rlhugh 4 күн бұрын
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.
@redstoneready697
@redstoneready697 23 күн бұрын
do you think this could be used for electromagetics?
@rlhugh
@rlhugh 23 күн бұрын
Interesting question!
@YaofuZhou
@YaofuZhou 19 күн бұрын
Depending on what you want. I guess you want to iteratively compute the EM fields?
@kwccoin3115
@kwccoin3115 11 күн бұрын
How do you run these shader ? Can it use under sdl2?
@rlhugh
@rlhugh 11 күн бұрын
These are running in Unity, using HLSL.
@nomoregoodguy6639
@nomoregoodguy6639 5 күн бұрын
wait you need a macbook pro to do pro stuff?? (looks sexy)
@rlhugh
@rlhugh 5 күн бұрын
I'm using a MacBook air m2
@tomd6410
@tomd6410 13 күн бұрын
Love this but if that’s how you say Euler I’ve been saying it wrong all this time 💀💀
@rlhugh
@rlhugh 13 күн бұрын
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?
@tomd6410
@tomd6410 13 күн бұрын
@@rlhugh I’ve been saying youll-lah 😅
@rlhugh
@rlhugh 13 күн бұрын
@@tomd6410 actuuaaalllyyy seems that it might depend on us vs UK pronunciation, eg see youglish.com/pronounce/eulerian/english/uk
@unepintade
@unepintade 10 күн бұрын
​@@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
@Leviathan_22
@Leviathan_22 Ай бұрын
"shaders are fun" consider me an opp
@rlhugh
@rlhugh Ай бұрын
Haha :)
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 394 М.
I Built an Entire Clock Mechanism to Prove this is Possible
19:15
Uri Tuchman
Рет қаралды 338 М.
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 38 МЛН
1 класс vs 11 класс (неаккуратность)
01:00
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 51 МЛН
FluidX3D - A New Era of Computational Fluid Dynamics
0:58
Dr. Moritz Lehmann
Рет қаралды 127 М.
Teaching myself C so I can build a particle simulation
11:52
Gradience
Рет қаралды 171 М.
Fluid Simulations made easy - A tutorial
3:03
PixelPhysics
Рет қаралды 1,5 М.
And this year's Turing Award goes to...
15:44
polylog
Рет қаралды 95 М.
Diffie-Hellman Key Exchange: How to Share a Secret
9:09
Spanning Tree
Рет қаралды 68 М.
Can a Boat Float In Supercritical Fluid?
9:13
The Action Lab
Рет қаралды 322 М.
HOW TRANSISTORS REMEMBER DATA
16:58
Core Dumped
Рет қаралды 111 М.
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 617 М.
How To Unlock Your iphone With Your Voice
0:34
요루퐁 yorupong
Рет қаралды 17 МЛН
Очень странные дела PS 4 Pro
1:00
ТЕХНОБЛОГ ГУБАРЕВ СЕРГЕЙ
Рет қаралды 275 М.
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 23 МЛН
как спасти усилитель?
0:35
KS Customs
Рет қаралды 524 М.
Обзор игрового компьютера Макса 2в1
23:34