Тёмный

Coding Challenge  

The Coding Train
Подписаться 1,7 млн
Просмотров 645 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 445   
@coolbrotherf127
@coolbrotherf127 5 лет назад
I have a C++ exam in 30min. I should probably watch this later haha.
@l0m-dev
@l0m-dev 5 лет назад
theacp127 Good luck!
@aidanhind4620
@aidanhind4620 5 лет назад
Good luck
@justafighter1346
@justafighter1346 5 лет назад
How did you think you did?
@coolbrotherf127
@coolbrotherf127 5 лет назад
@@justafighter1346 Pretty good. The professor makes a really fairly comprehensive review sheet so I as prepared for what was on the exam.
@justafighter1346
@justafighter1346 5 лет назад
@@coolbrotherf127 always improve
@kim15742
@kim15742 5 лет назад
No ... way! This is exactly what I was trying for the past 5 years!
@sethatkins3731
@sethatkins3731 5 лет назад
:-( Did you spend most of your time researching fluid dynamics?
@kim15742
@kim15742 5 лет назад
@@sethatkins3731 Well no, I saw that it was too much to understand and I moved on :D
@osimmac
@osimmac 5 лет назад
@@kim15742 if you understand copy paste you understand everything :D
@haaly7245
@haaly7245 5 лет назад
I spent quite some time trying this for a videogame. I failed miserably.
@TokiSamurai
@TokiSamurai 3 года назад
Me too
@glitchedjson4042
@glitchedjson4042 5 лет назад
#TeamTurbulance ! And it was very useful! I had no idea how to make a fluid simulator, but after this video, I still have no idea how to make it! But I at least know how it's supposed to work!
@TheCodingTrain
@TheCodingTrain 5 лет назад
Ditto.
@oofusmcdoofus
@oofusmcdoofus 5 лет назад
They got us in the first half not gonna lie.
@TheDetonadoBR
@TheDetonadoBR 5 лет назад
This was really nice to watch while I tried to copy what you did. My simulation is working perfectly, thanks
@prafulsrivastava7684
@prafulsrivastava7684 2 года назад
I have been going through Navier-Stroke's Equations for an entire day to write a simulation on my own. And I ended up here. I am so glad I ended up here!
@ThatChristopher
@ThatChristopher 5 лет назад
Oh neat I am working on my own hydro code. These particle-in-cell methods of simulating fluids are almost mystically powerful, you can go from simulating plasma physics to predicting traffic flow just by changing a few ( complicated ) terms. Thanks for the video, I hope this gets more people excited about questioning the world around them. There is a whole world moving every time you stir your coffee in the morning.
@aravindkarthik5120
@aravindkarthik5120 3 года назад
Hey Chris, being a beginner, may I know as to where I could start to learn about fluid simulation in depth?
@ThatChristopher
@ThatChristopher 3 года назад
@@aravindkarthik5120 Hey Aravind, it took me a couple days to remember some of the first resources I used. Ferziger's Computational Methods for Fluid Dynamics does a great job of breaking down some of the numerical methods you can use, and I think some of the older editions had the fortran code (which is what I played with to figure out what was going on). I believe some of the classical papers listed in that book are also good resources for learning. I'm sure there are other modern equivalents of that book, but I found Ferziger referenced in many papers of interest to me and I can see why. Writing codes is fun, but if you want to do any actual DNS of fluid simulation it becomes very expensive to do so.. It quickly goes from understanding the discretization of the DE to figuring out how to manage memory when you're implementing higher-order schemes.. which is something that I found isn't talked a lot about... This is something I wish someone told me from the start. You can solve a 100x100 grid pretty simply, and it will make pretty pictures, but trying to resolve turbulence requires a lot of computational power on top of the software development component of figuring out how to implement it. So don't be discouraged if it takes some time to figure out, and trying to build something yourself from nothing will teach you to appreciate a lot of the commercial tools and all the struggles they must have put up with to deliver what they can. Good luck.
@Grynjolf
@Grynjolf 7 месяцев назад
Where are parts 2 and 3? I can't find them! 😭
@DerSpielerMabuse
@DerSpielerMabuse 5 лет назад
I love the scene at 43:38 when the code finally works. It's obvious how run down Daniel is after trying for so long and the joy / relieve that it all comes together is just tangible. As a coder myself I can fully get that, his mini celebration is hilarious to watch, brilliant as usual
@TheCodingTrain
@TheCodingTrain 5 лет назад
Thank you, I was really wondering if anyone would actually make it this far into the video to see!
@scuidthesquid
@scuidthesquid 2 года назад
@@TheCodingTrain believe me when i tell you lots of people probably did, your videos are awesome to watch, even more so when coding with you or when you are interested in the topic. at least i watched it all. Thank you for the awesome series!
@avi12
@avi12 5 лет назад
32:37 What the heck?
@someguy4592
@someguy4592 4 года назад
this guy is the best
@emmettdja
@emmettdja 4 года назад
nice edit.
@HZLTV
@HZLTV 4 года назад
I quite literally started processing like last week (never been very good with Java) to use as part of a design project. Came across this channel, absolutely loving it even though I have almost 0 idea what’s going on!
@Maex2k
@Maex2k 5 лет назад
"Just let me take a quick look at the video..." 55 minutes later: #teamturbulence
@01binaryboy
@01binaryboy 3 года назад
Take all my assets . You are rocking man. I was searching these kind of videos for long time. Thanks to MikeAsh as well.
@Hyuts
@Hyuts 5 лет назад
Busy learning MongoDB atm but a mandatory thumbs up was given.
@erzzam
@erzzam 4 года назад
Made it through the final and it was awsome! Looking very much forward for the next episode of the series! #teamturbulence
@ZerofeverOfficial
@ZerofeverOfficial 5 лет назад
i made it to the end of this video
@TheCodingTrain
@TheCodingTrain 5 лет назад
I am gobsmacked.
@ffggddss
@ffggddss 5 лет назад
Make that last "a" an "e" and you're there! Fred
@OzieCargile
@OzieCargile 3 года назад
You've always been a great source of accessible and practical information. Thanks for being a great teacher.
@egebayraktar6620
@egebayraktar6620 Год назад
This is crazy, I am two days into this tutorial and searching for a typing error which gave me a different result than in 43:35. Finally I have found the error and watching you after 43:35 means so much more to me. (P.S: me the dumbass missed one i in the 99 th line of the source code in Functions so that it was float i0i = int(0) instead of int(i0).) If it is frustrating to get error, it is so much more to get none but get the wrong result. Anyways, you are one of my heroes.
@r.d.machinery3749
@r.d.machinery3749 5 лет назад
53:51 "Noone is going to make it to the end of this video" Still here, still fascinated :)
@oBCHANo
@oBCHANo 5 лет назад
It would be cool to see you get into those "tricks" to get better performance, a series of videos on optimizing and using things parallelization or whatever else would be really useful.
@thedotisblack
@thedotisblack 5 лет назад
Agree,. I would love to watch that too.
@tx6723
@tx6723 5 лет назад
yea it would be, and it would be cool to see it with processing java rather than processing or p5 since ik js doesn't have threading and processing idk if it has threads like the original java
@haaly7245
@haaly7245 5 лет назад
Nvidia has a very nice demo of this using shaders to compute the different steps using a 3d texture. It even goes the extra mile and accounts for moving obstacles within the fluid.
@bernatrosello4375
@bernatrosello4375 5 лет назад
This Video: *exists* RU-vid compression: *dies*
@zh9664
@zh9664 3 года назад
no? this isnt the type of thing video compression struggles with, its actually the opposite. you should know this, your literally watching a video on coding.
@bitterbob30
@bitterbob30 2 года назад
This guy always cracks me up. His enthusiasm is great.
@Crosstime.i
@Crosstime.i 5 месяцев назад
Moral: You can achieve anything if you just don't sit until its done....
@term477
@term477 5 лет назад
37:16 sounds like poetry
@rashmiranjannayak3251
@rashmiranjannayak3251 2 года назад
Perfect coding spirit
@maserb5
@maserb5 5 лет назад
I really liked this video! I studied aero dynamics for a while and it’s cool to see it in play.
@aidanhind4620
@aidanhind4620 5 лет назад
#teamturbulence
@ffggddss
@ffggddss 5 лет назад
Super! Another wonderful train ride through some intricate mathematical territory! BTW, this brings back some memories, as my dad was one of the pioneers of doing fluid dynamics on computers, for the purpose of numerical weather prediction. He dealt with the Navier-Stokes equation constantly! As well as mass & energy conservation, and others. And with sculpting code to run at maximum possible efficiency, with a multi-layer, lon-lat grid on limited computing capability. Especially on the computers of the early 1950's! Of course, for the atmosphere, you've got a compressible fluid, and you also have to model evaporation & condensation of water, varying sunlight, radiated heat from ground & water, city "heat islands," the effects of ice & snow cover, clouds with their own radiation and heat dynamics, etc. Not to mention that your whole spherical grid is rotating, so there's the Coriolis effect to deal with . . . But the essential setup is the same as what you have here, just with a spherical surface instead of a square, flat box; and a third dimension, which was typically only a handful of altitudes. Fred
@nostravis2770
@nostravis2770 2 года назад
"I'm sure youtube compression is totally ruining this." Spot on unfortunately
@animated.stories.reddit
@animated.stories.reddit 3 года назад
This is the first programming video I like xD
@Gamekid321
@Gamekid321 2 года назад
I really appreciate your video style! There are a lot of dev content creators out there that I can't really bear to watch. You keep things succinct and interesting, and without fumbling around too much even when you're not entirely sure what's going on as you port this code. Great personality, great editing! Lucky me decided that I wanted to learn fluid sim today and found you in the process. Easy follow. Thank you for what you do. :) #TeamLaminar btw
@v0ldelord
@v0ldelord 4 года назад
This video helped give me some insight into very opaque code provided by my professor last year. I have a slight correction which in my implementation improved the resulting simulation. When changing from 3d to 2d the amount of neighbours each cell has changes from 6 to 4. In lin_solve() a weighted average is taken dependent on the amount of neighbours where c represents the total weight. So calls to lin_solve() should be changed such that c corresponds with the amount of neighbours. I.e. in project() it becomes "4" and in diffuse() "1 + 4 * a". Without the adjustment lin_solve() reduces, whatever you put into it, by 33% after each iteration.
@Toknus
@Toknus 2 года назад
I don’t know if you still look at this thread, but at 25:32 I was SCREAMING when at line 97 the singular k value just went unrecognized! 😂😂
@x-lightsfs5681
@x-lightsfs5681 5 лет назад
Why am i watching this if i watched the live stream? Idk
@TheCodingTrain
@TheCodingTrain 5 лет назад
Go to 32:35 to find out.
@x-lightsfs5681
@x-lightsfs5681 5 лет назад
@@TheCodingTrain Wow, that effect is really cool
@MineRickStar
@MineRickStar 5 лет назад
@@TheCodingTrain It is wonderful.
@TheCodingTrain
@TheCodingTrain 5 лет назад
All thanks to twitter.com/mathblank
@luismiguelgallegogomez8000
@luismiguelgallegogomez8000 5 лет назад
Hahaha, luckily your future self is always there to explain the complex things
@illiasolohub3225
@illiasolohub3225 2 года назад
this feeling when you are doing the same thing but in python
@FractalWoman
@FractalWoman 4 года назад
This is the best channel ever. I never thought it would be so much fun watching someone else write code in real time, but you make it fun.
@tlace0392
@tlace0392 2 месяца назад
old video, but I thought I might comment lol. Its crazy to think about how far AI and GPT-4o has brought us. I am using GPT to follow along with this in python. The ability to say 'create a diffusion method, based on the pre-existing conditions' and it output it, perfectly, is absolutely mind blowing. I am a CS undergrad, who plans on going into Quantum Engineering, things like this make my goals seem a lot more achievable LOL.
@sebastiangudino9377
@sebastiangudino9377 Месяц назад
As long as you COULD implement it without the help of AI if you ever needed to, they yeah, it is an amazing tool to make small snippets of reusable modular code
@neillunavat
@neillunavat Месяц назад
he liked!!!
@laurenz5451
@laurenz5451 5 лет назад
Love how you explain the coding! Even though I am a beginner and am only able to code in C++, you are doing a fantastic job. Keep it on!:)
@bigrafati1221
@bigrafati1221 5 лет назад
When I watched this video I realized how much I still have to learn.
@porcinetdu6944
@porcinetdu6944 5 лет назад
Interesting but I absolutely understan nothing
@pritamdavis
@pritamdavis 4 года назад
#teamturbulence made it to the end of the video. Hurrah!!!!!!
@antoine257
@antoine257 5 лет назад
#TeamTurbulence Some ideas for a potential part 2 of the video: (1) how to change the bound function to fit a more complex shape (vector) with obstacles (islands?); (2) how two fluid sources can mix and accumulate when they meet; (3) how to add "current" to the whole simulation.
@dominick253
@dominick253 6 месяцев назад
Learned the basics, built a few apps, then got bored of programming. Just going through your videos again and man it sparks that passion again. Thank you. Just thinking about adding something a little extra into my portfolio website. I'm thinking about something recursive. Maybe mandelbrot? That would be pretty cool me thinks.
@godslayer7905
@godslayer7905 6 месяцев назад
If you can fix LOL bugs i will consider your chanel.
@gnkarn00
@gnkarn00 5 лет назад
this is Dan's example coded to p5JS , but still not working as the original in processing , if you find bugs , please let me know: gnkarn.github.io/p5js-course/p5jsProy_fluid_sim , code here : github.com/gnkarn/p5js-course/tree/gh-pages/p5jsProy_fluid_sim
@TheCodingTrain
@TheCodingTrain 5 лет назад
Thanks for sharing, I'd like to try to port it for here sometime too! thecodingtrain.com/CodingChallenges/132-fluid-simulation.html
@nicnakpattywhack5784
@nicnakpattywhack5784 4 года назад
if you code in javascript, code in bedrock-script! lol hahaha...
@nicnakpattywhack5784
@nicnakpattywhack5784 4 года назад
only minecrafters will understand
@johnosborne3766
@johnosborne3766 5 лет назад
@The Coding Train I think your videos are awesome and it would be really cool to see a simulation of Theo Jansen's Strandbeest... Theyre are a life like creation and would fit great in your set of videos as it is supposed to be a natural smooth movement (ie nature of code kinda thing). Idk just a suggestion but I think it'd be a lot of fun 👍😁 #teamTurbulence
@THE16THPHANTOM
@THE16THPHANTOM 3 года назад
C and C++ really make you appreciate languages like C#,java
@dragonsdream4236
@dragonsdream4236 2 года назад
I think I've gone insane, watching this video did something to my psyche. #teamturbulence
@gorannovaks
@gorannovaks 5 лет назад
The feeling when you already subscribed on the mentioned channels and watched the videos he is talking about.. do I need a girlfriend?
@albe6923
@albe6923 11 месяцев назад
It's been 4 years since your post, haven't you got a girlfriend yet?
@kyle5210
@kyle5210 5 лет назад
Watched this live and I came specifically for 54:04 :) :) :)
@mickicubing70
@mickicubing70 2 года назад
Very nice video! Do you have any plans on continuing this video series or do more on fluid simulations? This topic is very interesting and there aren’t a lot of videos explaining it so it would be really awesome.
@paull007
@paull007 5 лет назад
It was very fun on stream
@guys_animations
@guys_animations 3 года назад
2:45 the compression died because of all the tiny arrows
@rozmowastudio
@rozmowastudio 5 лет назад
HAVE BEEN WAITING FOR THIS LIKE FOREVER!!! THANK YOU DAN
@kayw8874
@kayw8874 2 года назад
Hi Daniel and the Coding Train, Fantastic job and cool video! I thought I’d give myself a treat on Saturday afternoon and do this nice coding challenge. However, I got stuck trying to understand where exactly the Gauss-Seidel iteration is inside the lin_solve method at 20:35. I have a strong impression that it is not there, but a close relative is doing the job. I think the sources mix up the Gauss-Seidel method and the Jacobi method, leading to some confusion here. If one applies the Jacobi method, everything turns out to be straightforward: The diffusion step involves numerical differentiation, which leads to this matrix en.wikipedia.org/wiki/Discrete_Poisson_equation applying the Jacobi method en.wikipedia.org/wiki/Jacobi_method directly leads to the lin_solve routine. Mystery solved. Hope that helps :)
@TheCodingTrain
@TheCodingTrain 2 года назад
Thank you for this feedback!!!
@claudiamirabile9340
@claudiamirabile9340 3 года назад
Is it in program any further video on the topic? I was hoping to have a second part explaining a bit the formulas used and another part to simplify them out. It would be so great... :-)
@InferiorPotassium93
@InferiorPotassium93 4 года назад
I love this channel, thank you so much for these videos. You make topics that are complex feel accessible.
@amarmerabti8338
@amarmerabti8338 2 года назад
#TeamTurbulance it's just amazing.
@mx0c
@mx0c 5 лет назад
#teamturbulence maybe gonna try to implement it in glsl... thats gonna be a challenge though :D
@jaredarm
@jaredarm 2 года назад
Is there a part 2? Would love to see you go through the code in detail and refactor it!
@Confuseddave
@Confuseddave 5 лет назад
I'm not sure how much I'll use the fluid simulation part, but the stuff about diffusion really clarified my thinking about an old hobby project i had, which I may well try to resurrect...
@nielsdaemen
@nielsdaemen 5 лет назад
17:10 Why didn't you use 2d arrays for the fluid? Then you wouldn't need this function!
@andrepascoa6687
@andrepascoa6687 4 года назад
His code is based on code written in C,and in C passing arrays of more than 1 dimension into functions is a pain in the ass because of pointers etc, so the creator just used that function to "simplify" it
@lavasnakegaming8650
@lavasnakegaming8650 5 лет назад
I was literally thinking if you had a fluid simulation video. Well, just in time! Also is it possible to make a 3d fluid simulation in processing?
@tappineapple3381
@tappineapple3381 5 лет назад
Maybe with webgl but that seems like the computer couldn't handle that. But idk
@TheCodingTrain
@TheCodingTrain 5 лет назад
If you follow mike ash's article you should be able to expand it into 3D!
@lavasnakegaming8650
@lavasnakegaming8650 5 лет назад
@@TheCodingTrain Ok thanks I'll try it out!
@ohmygod6487
@ohmygod6487 5 лет назад
How can I apply gravity to it?
@Saturos02
@Saturos02 5 лет назад
Navier-Stokes FTW!
@jordy15322
@jordy15322 5 лет назад
Got to give it to you this was a great way of procrastinating from doing coursework, I'm supposed to be writing test plans and stuff for a program i've written. But design documentation is boring this was way more time. Don't think i've ever left a comment or made it live but long time sub as i find your videos a good way to learn some stuff when i'm supposed to be doing other things.
@Juksemakeren
@Juksemakeren 5 лет назад
could you change the bounds function to make the fluid wrap around the edges or would that mess things up?
@TheCodingTrain
@TheCodingTrain 5 лет назад
Oh that would be interesting to try!
@wassimbourbia9780
@wassimbourbia9780 3 года назад
You are awesome thanks a lot, I need that
@austineadah2843
@austineadah2843 3 года назад
Amazing stuff!could you do a fluid solid interaction simulation? or point me in the right direction?
@eltondouglassilva7372
@eltondouglassilva7372 5 лет назад
That's so GREAT ..... I don't speak english, yeat, but i can understand you.... Crazy no?!?! hahahahaaaaaa..... I'll try make something like this, but on or in C# ..... So, thank's so much!!!! OBS: I'm a brazilian guy that love all of it.
@tx6723
@tx6723 5 лет назад
what c# library would you use for graphics
@Marisol-ks4kh
@Marisol-ks4kh 4 месяца назад
Good day! Sorry for the complications! Mi lenguaje en inglés es muy poco, existe posibilidad de habilitar traducción en español? Gracias!
@xnick_uy
@xnick_uy 5 лет назад
#TeamTurbulence After taking a peek into that lin_solve( ) function in the Mike Ash's page, I recognized the use of a relaxation type of solver for the problem, which I met by solving electrostatic problems. Indeed, after visiting the wikipedia page en.wikipedia.org/wiki/Relaxation_(iterative_method) my hypothesis was confirmed, and there references to the Gauss-Seidel method also appear (en.wikipedia.org/wiki/Gauss%E2%80%93Seidel_method).
@TheCodingTrain
@TheCodingTrain 5 лет назад
Oh, awesome, thank you! This is helpful.
@justgame5508
@justgame5508 5 лет назад
It’s so satisfying for me to actually see and understand the mathematical topics that were forced to study as part of my engineering degree, reminds me that they don’t make us take maths modules because they enjoy watching us suffer🙃
@tx6723
@tx6723 5 лет назад
yea maths/phys can be interesting, esp when paired with visual programming
@salahsoliman5752
@salahsoliman5752 Год назад
This was so much fun, I didn't expect it to work this smoothly 😂😂
@mworld
@mworld 4 месяца назад
FYI: `struct FluidCube` is C not C++. The typedef gives it away, which is not required in C++. Also the calloc etc used below that for memory initialization is C.
@Stephen_Samuel
@Stephen_Samuel 3 года назад
मसीह यीशु पापियों का उद्धार करने के लिये जगत में आया . . . (1 तीमुथियुस 1:15) यदि तू अपने मुँह से यीशु को प्रभु जानकर अंगीकार करे और अपने मन से विश्वास करे, कि परमेश्‍वर ने उसे मरे हुओं में से जिलाया, तो तू निश्चय उद्धार पाएगा। (रोमियों 10:9) “क्योंकि परमेश्‍वर ने जगत से ऐसा प्रेम रखा कि उसने अपना एकलौता पुत्र दे दिया, ताकि जो कोई उस पर विश्वास करे, वह नाश न हो, परन्तु अनन्त जीवन पाए। (यूहन्ना 3:16)
@Marcos10PT
@Marcos10PT 3 года назад
Team turbulence for life!!!!! Thumbs up if you will tattoo "team turbulence" in your right forearm in the next 30 days!!
@israeltettehakrong9082
@israeltettehakrong9082 9 месяцев назад
You are very talented in using processing. ❤❤❤❤❤❤U Shiffman.
@aura0448
@aura0448 5 лет назад
Am I one of the few that watched the entire video without stopping or skipping once? #TeamTurbulence
@aura0448
@aura0448 5 лет назад
51:47 don't worry it was helpful, maybe not so interesting though..
@guzman-do
@guzman-do 5 лет назад
YES!!! Excellent!!! I needed to understand this fluid simulation thing for my game 👍#teamturbulence *all the way* WOOHOO!!! 😄🤣😅
@CabConHD
@CabConHD 3 года назад
Can we do something with freeform gradients? Like adobe released a year ago.
@Dennis4Videos
@Dennis4Videos 5 лет назад
flute intro cracked me up, thanks for your awesomeness
@aloksahu1783
@aloksahu1783 5 лет назад
How the same idea can we used for drag circulation for a particular shape
@trejkaz
@trejkaz 2 года назад
Performance is so bad once the size is bumped back up to 256. And the real mind blow is, almost all the time is spent just drawing it.
@spyrex3988
@spyrex3988 3 года назад
i dont understand the renderD() funtion? how does that work also I'm getting out of bound exception and program crashing i was trying to write in c++ with sfml. Do u know how to add constraint in c++ like in java
@namenloss730
@namenloss730 7 месяцев назад
It's always better to have Jo Stam's permission for things, because this 7'2" hulk of a man can crush you otherwise
@bharatgupta7145
@bharatgupta7145 2 года назад
At 23:20, why is he only taking 4 neighbors into account. Doesn't each square have 8 neighbors??
@juvusart
@juvusart 2 года назад
This is a gteat example of a man who really love what he is doing.
@kacperozieblowski3809
@kacperozieblowski3809 5 лет назад
32:38 love the edit, and the transition music, so funny
@Chilli5m
@Chilli5m 5 лет назад
This is great. I've been trying to write my own fluid simulators in P3 but they aren't exactly intuitive or easy to get started with. I would love to see a video on the Lily Pad project.
@priyansutank
@priyansutank 2 года назад
23:00 Aha same deja vu here! I think probably 3b1b video on heat equation...
@ayushnayak6138
@ayushnayak6138 Год назад
So it takes 56 minutes to copy paste code. That's a coder for ya. 10 min copy paste remaining error correction.
@sebastiankrein8532
@sebastiankrein8532 8 месяцев назад
Is this running on the GPU? Iam curious because it’s so fast despite the huge array processing…
@overfield18
@overfield18 4 месяца назад
and here im watching this almost 9 years after video being published
@danh9676
@danh9676 5 лет назад
I found this video while trying to find out how simulate a river. Whether or not this is what i'm looking for, I made it to the end, and learned a lot.
@therobin9810
@therobin9810 5 лет назад
Love the idea of this series! Sadly this video was a bit lacking, not much 'why', mostly just 'do', which i do not find very interesting or educational. Looking forward to the next episode! :)
@TheCodingTrain
@TheCodingTrain 5 лет назад
Thank you for this feedback. I think you hit on something here and I agree. When I started out I had hoped to have this more an explanation of the algorithm itself and how it worked but it ended up being more about porting C++ to Java. Hopefully I can return to this topic more in the future and get at the "why" and "how".
@therobin9810
@therobin9810 5 лет назад
@@TheCodingTrain Looking forward to it! It does seem like an interesting topic and something i want to take a closer look at myself actually, maybe even recreate it! Thank you for revealing it to me, your future videos on this will definitely help in further understanding and exploring the concept. :)
@hekec
@hekec 4 года назад
Will there be a huge drop in performance if I try to build it in p5.js?
@TheCodingTrain
@TheCodingTrain 4 года назад
Indeed! I've gotten it to work at very low resolution. I've seen really fast browser versions of fluid simulations using WEBGL.
@franmedina2096
@franmedina2096 Год назад
What if the dye was some kind of “temperature” and on top of deffusion we could add heat transfer/disipation to the sim?
@bokkenka
@bokkenka 5 лет назад
Somebody got a little slap-happy at the end. :)
Далее
Coding Adventure: Simulating Fluids
47:52
Просмотров 1,8 млн
Coding Challenge #98.1: Quadtree - Part 1
38:08
Просмотров 309 тыс.
But How DO Fluid Simulations Work?
15:12
Просмотров 378 тыс.
Coding Challenge #145: 2D Raycasting
36:02
Просмотров 641 тыс.
Coding Adventure: Ant and Slime Simulations
17:54
Просмотров 1,9 млн
Fast Inverse Square Root - A Quake III Algorithm
20:08
Coding Challenge #71: Minesweeper
53:46
Просмотров 529 тыс.
Coding Challenge 162: Self-Avoiding Walk
38:27
Просмотров 153 тыс.
Coding Challenge 185: Unfolding Fractals
31:04
Просмотров 38 тыс.