nice but I don't understand this sentence "When vector points into below right cell cell is green"
@FromLakeКүн бұрын
Thank you for this video
@rlhughКүн бұрын
Thank you!
@janerikjaksteinКүн бұрын
Awesome 👍
@rlhughКүн бұрын
Thank you!
@tselhamishac5910Күн бұрын
Nice
@rlhughКүн бұрын
Thank you!
@naztar43232 күн бұрын
You could have used MultiGrid for the solver since it land it self to parallelism better
@rlhughКүн бұрын
Yes. Potentially a topic for a next video :)
@mikhailhumphries3 күн бұрын
Can't believe I watched entire video about coding and didn't get bored
@inspacesilence3 күн бұрын
thanks for such a great explanation : ) . I 💙it
@rlhugh3 күн бұрын
Thank you!
@thesilentnerd46184 күн бұрын
Very nice explanation. Keep it up.
@rlhugh4 күн бұрын
Thank you!
@NobodyYouKnow014 күн бұрын
No way Euler got named for a fluid dynamics problem. We're supposed to name the problem after the *second* person to solve it!
@stepdoger71304 күн бұрын
Finally good explanation
@priyanshuvishnoi4 күн бұрын
Use a mac with any non apple monitor and it destroys those bezier curves
@SpeedyGwen5 күн бұрын
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
@rlhugh4 күн бұрын
Interesting! Thank you!
@twobob5 күн бұрын
thumbs up. For me, the three Lerp explanation was beautifully succint.
@rlhugh5 күн бұрын
Thank you!
@cashkurtz57805 күн бұрын
So persistent zero velocity is like a solid object? I wish it were easier to see it against an unmoving background .
@rlhugh5 күн бұрын
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.
@nomoregoodguy66396 күн бұрын
wait you need a macbook pro to do pro stuff?? (looks sexy)
@rlhugh6 күн бұрын
I'm using a MacBook air m2
@chemnobeliumlab15206 күн бұрын
Awesome made my day :))
@rlhugh6 күн бұрын
Awesome. Thank you :)
@EAGLETECHHACKING6 күн бұрын
Finally secret revealed
@anonymouscommentator6 күн бұрын
loved the video! feels like discovering sebastian lagues yt channel all over again :)
@rlhugh6 күн бұрын
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 :)
@laxmandeadpool82606 күн бұрын
Today is the first time I actually understood the bezier curve
@rlhugh6 күн бұрын
Awesome :) Also, thank-you for taking the time to encourage me with this positive feedback :)
@Kevin-jz9bg7 күн бұрын
That was one of the best explanations for advection I've seen online! Especially the pushing bubbles out of a phone screen protector analogy.
@rlhugh7 күн бұрын
Thank you very much! Very much appreciated :)
@sapiosuicide15527 күн бұрын
Cool
@codeAbinash7 күн бұрын
Nice 😊
@rlhugh7 күн бұрын
Thank you!
@athuldas447 күн бұрын
What should be the grid size tho
@rlhugh6 күн бұрын
Whatever you like. Typically, we might combine multiple "layers" of perlin noise, with different grid sizes. Often powers of 2.
@athuldas444 күн бұрын
@@rlhughAnd some article say to take pseudo random number rather than a random unit vector but still works right
@veritas70108 күн бұрын
I love this, thank you for makin my day on yt much better!
@rlhugh7 күн бұрын
Thank you very much!
@mzg1478 күн бұрын
What is your programming font though? (1:23) looks cute and slick!
@rlhugh8 күн бұрын
It's whatever JetBrains Rider uses, which is ... JetBrains Mono
@tommycard456910 күн бұрын
educational and entertaining! loved it, thank you
@rlhugh10 күн бұрын
Thank you!
@benjaminlehmann10 күн бұрын
… and in one video he dispels a mystery. Take a bow, sir.
@benjaminlehmann10 күн бұрын
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.
@rlhugh10 күн бұрын
Thank you very much!
@kwccoin311512 күн бұрын
How do you run these shader ? Can it use under sdl2?
@rlhugh12 күн бұрын
These are running in Unity, using HLSL.
@Tordek12 күн бұрын
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.
@ABaumstumpf12 күн бұрын
PerlinNoise is so simple yet so often (sadly) misrepresented. And this is a nice visualisation of it.
@rlhugh12 күн бұрын
Thank you very much!
@delphicdescant12 күн бұрын
So far in your fluid simulations, you've pretty consistently adhered to "the incompressibility of fluids," but aren't you going to run into problems with these more advanced simulations when the true compressibility of fluids becomes non-negligible? Like, sure, water doesn't compress very much, but the gasses on Venus do.
@rlhugh12 күн бұрын
Yeah, you're right. Though it might depend what I'm simulating? Im assuming that rocks, over a long period of time, behave somewhat like incompressible fluids. But I might be wrong in this assumption? You're right that the "atmosphere" of Venus is actually a supercritical fluid, which basically behaves like a dense compressible gas.
@rlhugh12 күн бұрын
Oh, this comment is on the venus part 1 video. Oh, yes, right. Good point.
@delphicdescant12 күн бұрын
@@rlhugh Yeah I was referring specifically to this video about Venus, but I kind of have the same concern more generally: All fluids *do* compress, but that compression can be neglected in certain low-energy cases with certain fluids, like water at STP. And in general it can *never* be neglected with a gas. I think even for your example of rocks, you wouldn't want to neglect compression, since a lot of different types of rocks are formed primarily through a process of compression (like metamorphic rock varieties). In all your research of these sorts of simulations, by the way, have you ever run across a method that represents the fluid pressure explicitly? Eulerian methods don't seem to have any such representation, by your description, but I'm not enough of an expert to know.
@HitAndMissLab13 күн бұрын
Thanks for the beautiful video.
@justinsciullo334214 күн бұрын
This is so cool, and you did a great job with the video editing! I hope you make more videos like this!
@rlhugh14 күн бұрын
Thank you! That's very kind to say. Very much appreciated :)
@iforce2d14 күн бұрын
Very cool, I like the in-depth explanation. Many years ago I made a hybrid simulation that sounds a bit like your description of how the 'flip' one switches between particles and cells. My motivation was I needed the particles to interact with rigid bodies in the Box2D engine, but I didn't want to simulate collisions between particles. In every step, particles are moved and then grouped into whatever cell they land on, summing their momentum. If a cell has too much mass it expands to push the excess to its neighbors. Then each cell sums up whatever overlap it contains and makes a particle at that center of mass. Something like that... it was about 12 years ago so I forget the intricate details. Unfortunately the collision with rigid bodies proved too difficult, but it looked quite realistic just splashing around and interacting with itself. You can see an unlisted video here: XHFbTSm7qRc That was all CPU, but I always wondered how it would suit a GPU version.
@tomd641015 күн бұрын
Love this but if that’s how you say Euler I’ve been saying it wrong all this time 💀💀
@rlhugh15 күн бұрын
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?
@tomd641014 күн бұрын
@@rlhugh I’ve been saying youll-lah 😅
@rlhugh14 күн бұрын
@@tomd6410 actuuaaalllyyy seems that it might depend on us vs UK pronunciation, eg see youglish.com/pronounce/eulerian/english/uk
@unepintade11 күн бұрын
@@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
@landsgevaer13 сағат бұрын
Oy-lear-ean, surely...?
@santiagobirkenstock15 күн бұрын
I wish the very best on KZbin, I am so glad I discovered your channel. Keep up the good work !
@CalcWithDec17 күн бұрын
Beautiful!
@redstoneready69724 күн бұрын
do you think this could be used for electromagetics?
@rlhugh24 күн бұрын
Interesting question!
@YaofuZhou20 күн бұрын
Depending on what you want. I guess you want to iteratively compute the EM fields?
@josiahjoel758025 күн бұрын
this is so cool, is it possible to upload the source code to a public repo?
@keyhaven815126 күн бұрын
Thank you ! You mentioned at the end of the video that Unity is single threaded and can be achieved by encapsulating multiple agents. How is this achieved?
@rlhugh25 күн бұрын
Does this example help? github.com/hughperkins/peaceful-pie/tree/main/examples/DungeonEscape
@keyhaven815125 күн бұрын
@@rlhugh Thank you. But this seems very complicated, and we don't know where to start. Can you please provide a video explanation?
@rlhugh20 күн бұрын
Good idea!
@keyhaven815120 күн бұрын
@@rlhugh Thank you very much for accepting my opinion. The video you made is very friendly to beginners, and I look forward to your video!
@keyhaven815126 күн бұрын
Nice work!!! But we can not find the "Step" method in the unity_comms.py. Did you miss anything when uploading the file?
@rlhugh26 күн бұрын
wow the repo at github.com/hughperkins/peaceful-pie-video-resources has been prviate all this time :O
@rlhugh26 күн бұрын
is this the code yo uare looking for? github.com/hughperkins/peaceful-pie-video-resources/blob/d7dcd50edef768f6bbc8cae5ac38eb43a4a8b129/3_train_rl_env/python/train_rl.py#L23-L28
@keyhaven815126 күн бұрын
@@rlhugh wow! Nice!Thanks!This can help us a lot!
@Leviathan_22Ай бұрын
"shaders are fun" consider me an opp
@rlhughАй бұрын
Haha :)
@dickdick-wu9fwАй бұрын
How can I execute a method every frame or at a fixed frame rate? I need to retrieve the position of a character every frame.
@rlhughАй бұрын
there's some discussion of controlling time in the second video kzbin.info/www/bejne/pmSXlYKQa8uWp8ksi=S4XhbmC5mLX_ItXa Not sure to what extent that answers your question?
@ZoutepepselmetkomkommerАй бұрын
Just wanted to say you are the first person I found to try and explain PPO on YT, so progress!
@TheSuperNova994Ай бұрын
source code?
@treeplate512Ай бұрын
glif, not glife
@rlhughАй бұрын
Yeah, right :) too late to change unfortunately :)
@rlhugh9 күн бұрын
addressed in kzbin.info/www/bejne/m4TXc2annLyiZ8k
@kann3rАй бұрын
I like this video alot! It's a good summary. Although, a small reccomendation I have is that you should use padding when showing something. The font glyphs get cut off at the top and bottom, and it's a bit jarring especially at 2:24
@rlhughАй бұрын
Thank you! Very useful feedback :)
@rlhugh9 күн бұрын
addressed in kzbin.info/www/bejne/m4TXc2annLyiZ8k
@wand6792Ай бұрын
this is awesome! very well explained, i think ;> keep this up!! cool stuff <3