Coding a Fluid Simulation with my Last 2 Brain Cells

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • github.com/Gon...
    Music by LAKEY INSPIRED
    / lakeyinspired
    Music - THYKIER - Shimmer [NCS Release]
    • THYKIER - Shimmer | Te...

КОМЕНТАРІ • 1,1 тис.

  • @carrotylemons1190
    @carrotylemons1190 2 роки тому +4242

    Just get a box and fill it with water (or tiny golden spheres depending on your preference) then attach a camera broadcasting a live stream to your computer. The user never needs to know.

    • @ariseyhun2085
      @ariseyhun2085 2 роки тому +80

      Holy fuck.. genius!

    • @incription
      @incription 2 роки тому +119

      Tell the user to go outside

    • @jpobi9880
      @jpobi9880 2 роки тому +16

      This cracked me up

    • @ProjectPhysX
      @ProjectPhysX 2 роки тому

      With my CFD software you can't tell if it's real or simulation anymore. It's potorealiatic, physically accurate and runs in real time. See for yourself on my YT channel.

    • @creative2158
      @creative2158 2 роки тому +23

      this is the level of abstraction i dream of

  • @romantried4670
    @romantried4670 2 роки тому +2879

    it’s beautiful how you haven’t successfully made either soft body physics or fluid sim

    • @gnull
      @gnull 2 роки тому +61

      LMFAO

    • @barni5326
      @barni5326 2 роки тому +14

      Yes.

    • @Wlodixpro
      @Wlodixpro 2 роки тому +66

      Bruh he did fenomenal he is probably just a highschool kid and doing advanced syms

    • @FloridaMeng
      @FloridaMeng 2 роки тому +24

      Yeah but he made more money than you doing it.

    • @mikul3122
      @mikul3122 2 роки тому +119

      @@FloridaMeng I don't think OP was putting him down or anything, I think it's just genuinely funny that he didn't end up actually completing either, cuz gonkee a funny guy

  • @Der3ban
    @Der3ban 2 роки тому +1452

    Tip: Code it underwater so no one can see your tears

  • @Taygetea
    @Taygetea 2 роки тому +2075

    your michael reeves impression is on point.

    • @robincchew
      @robincchew 2 роки тому +28

      Michael Reeves lives on

    • @KushagraPratap
      @KushagraPratap 2 роки тому +14

      caveman ooga booga

    • @Martipops
      @Martipops 2 роки тому +57

      No it’s just the dry humor of programmers

    • @Taygetea
      @Taygetea 2 роки тому +38

      @@Martipops its in how he says 'i have brain damage' and that kind of thing, the editing style, etc, its a dead ringer for michael's style if you look at something he did a couple years ago. other programmers on youtube who are funny dont do it the same way.

    • @robnumnum2095
      @robnumnum2095 2 роки тому +17

      "lies and deceit" - I was about to say something similar

  • @Chriva
    @Chriva 2 роки тому +212

    "It looks like diarrhea"
    Ofc people are going to poke the hornet's nest lol

    • @sinpi314
      @sinpi314 2 роки тому +3

      That's not how you spell diarrhoea/s

    • @nicoradv3923
      @nicoradv3923 2 роки тому

      @@sinpi314 so wat

  • @Ciubix8513
    @Ciubix8513 2 роки тому +266

    This is the best representation of what programming feels like

    • @inquisitorthornside3p494
      @inquisitorthornside3p494 2 роки тому +2

      This looks like a diarrhea.

    • @sempiternal_futility
      @sempiternal_futility 2 роки тому +3

      @@inquisitorthornside3p494 my man about to commit some warcrimes

    • @inquisitorthornside3p494
      @inquisitorthornside3p494 2 роки тому

      My favourite leisure activity, right next to "xenoresearch"

    • @krikusZ80
      @krikusZ80 Місяць тому

      This the worst demonstration how programming looks like. Not all cases are ideal, but if you are messing around like this, it just means you don’t understand either the physics or a tool you are using.

  • @mikal2de
    @mikal2de 2 роки тому +13

    this looks like diarhea

    • @Monkeymario.
      @Monkeymario. 2 місяці тому

      i was gonna comment that this looks like diarhea

  • @gergodemeter5553
    @gergodemeter5553 2 роки тому +373

    To be honest, I like how this guy is SLOWLY learning things. Slowly, but efficiently.

    • @vanjazed7021
      @vanjazed7021 2 роки тому +31

      Would not say slowly

    • @slotnickproductions6862
      @slotnickproductions6862 2 роки тому +17

      Learning all this from scratch? Not slow at all

    • @narwhal_
      @narwhal_ 2 роки тому +4

      @@slotnickproductions6862 its not impressive, but its definitely efficient and a good way to start. even if it is not the best :D
      i def couldnt do better lmao

    • @dexorne9753
      @dexorne9753 2 роки тому +3

      @@narwhal_ I'd love to see that, assuming you don't already know how to do it, would make a good video.

    • @narwhal_
      @narwhal_ 2 роки тому +2

      @@dexorne9753 im so bad at math its not even describable. most i can do is code in python and lua so im off the charts.

  • @sasimitra5871
    @sasimitra5871 2 роки тому +592

    I could not stop laughing the entire video and somehow still learned something.
    I swear, every single video on this channel is gold. I hope I can be remotely as good as you are if I ever become a youtuber.

    • @pseka_f5557
      @pseka_f5557 2 роки тому +22

      Gold like the diarrhoea

    • @snomando7208
      @snomando7208 2 роки тому +3

      diarrhoea? no no no no LIQUID gold

    • @derekmendes1058
      @derekmendes1058 2 роки тому

      Honestly, I stumbled on to your channel and could not be more impressed the quality of entertainment that you’re producing while still being educational. Keep it up man your going places.

    • @inquisitorthornside3p494
      @inquisitorthornside3p494 2 роки тому

      This looks like a diarrhea.

  • @klonanbrown2807
    @klonanbrown2807 2 роки тому +98

    It was fun to watch you suff- I mean code and research, really inspiring, we need longer videos!

  • @ArsonSnowman
    @ArsonSnowman 2 роки тому +10

    Looks like spicy diarrhea

    • @Monkeymario.
      @Monkeymario. 2 місяці тому +1

      i was gonna comment that this looks like diarhea

  • @GrantKot
    @GrantKot 2 роки тому +9

    I seem to have awakened an anime pootagonist.

  • @LoafOfTheMilk
    @LoafOfTheMilk 2 роки тому +4

    This looks like diariea

  • @coffzor123
    @coffzor123 2 роки тому +141

    You're blowing up within the group watching game devs, right up in my recommended several times :) Love your content so far and I'm always clicking when I see you in my recommended :) You have a bright future here on youtube! Keep it up :)
    Buuuuut, your water looks like diarrhea.

    • @joshuachan6317
      @joshuachan6317 2 роки тому +1

      Lolllll

    • @n0ok
      @n0ok Рік тому

      liquid gold* looks like diarrhea

  • @fatitankeris6327
    @fatitankeris6327 2 роки тому +3

    1:50 Ah yes, the Michael Reeves philosophy...

  • @LeshaTheBeginner
    @LeshaTheBeginner 11 місяців тому +2

    Him: Don't say it looks like diarrhea or I'll commit a war crime.
    Literally everyone: THIS LOOKS LIKE DIARRHEA!

  • @DeuxisWasTaken
    @DeuxisWasTaken 2 роки тому +35

    You can actually call C and unmangled C++ code (declared within an `extern C` block) directly from C# by compiling it as shared library and using the `DllImport` attribute thingy. It may require writing a wrapper in some cases, but it's usually far faster and easier than re-coding the entire thing.

  • @hk8769
    @hk8769 3 місяці тому +1

    There is so much potential in your videos, please come back. They are not only informational but also sprinkled with funny memes, which make me chuckle while learning

  • @Zedoy
    @Zedoy 2 роки тому +10

    It looks like golden diarrhea

  • @Polygarden
    @Polygarden 2 роки тому +40

    Lots of those scientific papers are overwhelming. Just keep in mind how water would behave. After fiddling around with water simulations for 2 years, it turned out that a simple "advection" and "curl" is all you need. And if you want that your fluid doesn't explode, keep in mind that it always should flow towards an area with less pressure than it's currently in. (so you make a pressure check with delta to fix it) Good luck diving into this rabbit hole!

    • @lobsterbark
      @lobsterbark 2 роки тому +5

      If you are trying to do real time water physics for games, I think you need to ask yourself how you are going to be using the fluid simulation for your game before anything else. That way you know if you actually need it, what areas can be sloppy and what areas need to be good.

    • @StarForgers
      @StarForgers 2 роки тому +4

      I can allready feel the flying anti gravity liquid due to lack of pressure in the air above it!
      That actually sounds cool af thinking of it if light refraction works on individual particles!

  • @shaladddin5687
    @shaladddin5687 2 роки тому +30

    this is how a big channel start, except Gonke goes straight to the final form

  • @mani_mincraft
    @mani_mincraft 11 місяців тому +1

    Thank you. You really inspired me to start making physics simulations by myself, turns out that’s a pretty interesting field of computer science. So yeah thank you very much!

  • @yotamrothberg599
    @yotamrothberg599 Рік тому +16

    the fact that Michael reeves sparked this trend of really smart dudes making cool projects while acting ridiculous makes me appreciate him all the more.

  • @markusheimerl8735
    @markusheimerl8735 2 роки тому +1

    you can only make these big brain jokes if you actually do it in the end

  • @unitysparticlesystem
    @unitysparticlesystem 2 роки тому +22

    3:23 We need to meme the sh*t out of this XD
    The visuals are awesome!

  • @niklasneighbor6726
    @niklasneighbor6726 2 роки тому +2

    2 minutes in and i can tell how he started watching michael reeves and immediately adopted his personality lmao. like.

  • @grandplat3462
    @grandplat3462 2 роки тому +5

    I genuinely respect this man's dedication

  • @gabe.henrique
    @gabe.henrique 2 роки тому +2

    rgba alpha is the answer to transparency if you’re using SDL or OpenGl

  • @charliecreasey9194
    @charliecreasey9194 2 роки тому +5

    bruh i want longer vids i loveeeee this

    • @charliecreasey9194
      @charliecreasey9194 2 роки тому +1

      like even if you live stream the entire thing i would watch it

  • @amukh1_dev274
    @amukh1_dev274 Рік тому +1

    "We start how many things start: ⭐the balls ⭐

  • @3sc4p1sm
    @3sc4p1sm 2 роки тому +3

    This is a realistic example of trying to teach yourself maths and physics sims. Khan academy is great to really get the math bits down pat

  • @lucasnogueira3232
    @lucasnogueira3232 2 роки тому +2

    I like how is apparent is the difference of your mental state between simulations in 2D and 3D

  • @SytheZN
    @SytheZN 2 роки тому +73

    I support this! "Use somebody else's implementation" is great advice for production, but terrible advice for learning.

    • @GrantKot
      @GrantKot 2 роки тому +36

      Both our emails have been modified for juiciness. He mentioned he was implementing fluids for a game, so I started off with a "wait, are you sure you want to do this yourself because these tools are available". But after that I gave a good list of simulation methods and their pros & cons as well as answering the technical questions asked.

    • @SytheZN
      @SytheZN 2 роки тому +10

      @@GrantKot 😀 Sorry if that came across as criticism! Was intended more as "doing something yourself is the best way to learn".

    • @Monkeymario.
      @Monkeymario. 2 місяці тому +1

      actualy its better for learning than production

  • @the_kid777
    @the_kid777 7 місяців тому

    I seriously didn't think I would be revisiting this video so many times when I get stuck with programming. Thanks bro it makes me smile.

  • @wwestrongmans
    @wwestrongmans 2 роки тому +3

    The water in coding moment is really vibing so well

  • @ashisharky
    @ashisharky 2 роки тому

    The fucking music time-lapse part was absolutely amazing

  • @yoratoni_depreciated
    @yoratoni_depreciated 2 роки тому +13

    omg, at this point, i'm just waiting for you to have 200k subs so you can make a lot more videos with that good old UA-cam money

  • @Luted09
    @Luted09 Рік тому +1

    i would love some *expired mountain dew*

  • @positivenozy6065
    @positivenozy6065 Рік тому +4

    it looks like diarea

  • @BroncoGammon
    @BroncoGammon 2 роки тому +1

    I love that mans not hot is just playing on his monitor lol

  • @RazgrizDuTTA
    @RazgrizDuTTA 2 роки тому +4

    Nice! Maybe I will try sometime.
    In my opinion there are 2 kinds of fluid simulations: those which look real (fine for video games and movie fx) and those which accurately model real fluids (for engineering and research).
    Actually SPH is used in simulation engineering software, often to simulate short impacts between a fluid and a solid. For longer time frames, "grid-based" (mesh) methods dominate, especially the finite volume method.
    (I'm doing a PhD in multiphysics simulation for engineering)

  • @thegamingdragonslayer6972
    @thegamingdragonslayer6972 2 роки тому +1

    Really underrated channel

  • @victormurphy3511
    @victormurphy3511 2 роки тому +4

    I love it.... I'm crying with laughter.... cave man... painful.... yes I understand how much work this take too...
    The power of red bull.... I love it.
    Thank you. Keep the videos coming.

  • @Doug_Fany
    @Doug_Fany Рік тому

    01:02
    Boy, you just described the life of every living creature.

  • @InvictusM0n
    @InvictusM0n 2 роки тому +11

    My man you should really stream your progress on twitch it will be fun for everyone seeing you struggle in realtime.

    • @rimmertf
      @rimmertf 2 роки тому +2

      most of the time that is counter productive when coding. It destroys the flow according to some gamedev i watched, but it could be fun

  • @mrtaco5956
    @mrtaco5956 2 роки тому +2

    this guy is so underrated

  • @Xphy
    @Xphy 2 роки тому +3

    I just love youu and how funny u r

  • @ВладиславСубботин-з1э

    I have watched only the first 17 seconds of the video, and I already subscribed. Keep going

  • @mahyellaw
    @mahyellaw 2 роки тому +8

    experiencing pain and suffering just to make balls into fluid. quality content as usual dude, hope your brain cells are eating fine.

  • @crunch7909
    @crunch7909 2 роки тому +1

    Getting strong Michael Reeves vibes from your videos

  • @kcayos3970
    @kcayos3970 2 роки тому +3

    I am excited to see the final product of your physics code. This is super entertaining, keep this stuff up.

  • @IamPyu-v
    @IamPyu-v Рік тому +1

    This looks like Scratch could make a good first impression

  • @MrNathanShow
    @MrNathanShow 2 роки тому +3

    Stable Fluids paper is a good starting point. But estimating differential equations is fun. All and all fluid sim is still a hell hole to actually do due to that you're not actually simulating. But rather trying to use an algorithm to best estimate the next frame of the hypothetical simulation that is not real.

  • @NicholasRehm
    @NicholasRehm 2 роки тому +1

    Here before the Michael Reeves collab

  • @MAPster7000
    @MAPster7000 2 роки тому +9

    If your diarrhea consists of magic golden balls floating randomly around... you may have a few serious problems xD
    Really awesome videos by the way ! I just spent several days figuring out how to draw a stupid isosphere in OpenGL without causing crazy graphical artifacts, programming is pain xD

  • @virtualcombat4863
    @virtualcombat4863 2 роки тому +1

    This looks like diehardayyyaaaa now you have to commit a war crime

  • @MC5677
    @MC5677 Рік тому +3

    4:18 this looks like diarrhea

  • @Dwaynetherock
    @Dwaynetherock Рік тому

    Gonkee: We start from where every things start, the balls.

  • @inuka6969
    @inuka6969 2 роки тому +3

    *diarrhea*

  • @omgle118
    @omgle118 2 роки тому

    I actually got happy when the ad happened you deserve many money and likes and subsriincbers.

  • @sophiaava5666
    @sophiaava5666 2 роки тому +23

    Investing in crypto now should be in every wise individuals list, in some months time you'll be ecstatic with the decision you made today.

    • @elisesummer4059
      @elisesummer4059 2 роки тому

      Most intelligent words I've heard.,

    • @cliffordharry5889
      @cliffordharry5889 2 роки тому

      Crypto is the new gold.

    • @miaemma8465
      @miaemma8465 2 роки тому

      wanted to trade Crypto but got discouraged by the fluctuations in price,

    • @lisamoore7309
      @lisamoore7309 2 роки тому

      @@miaemma8465 That won't bother you if you trade with a professional like Mr Timothy Gregg

    • @katieallie8740
      @katieallie8740 2 роки тому

      I heard that his strategies are really good

  • @AstroSamDev
    @AstroSamDev 2 роки тому +1

    Lmao, great video! I hope you eventually get it to not look like diarrhea 👀

  • @grizlethebear8652
    @grizlethebear8652 2 роки тому +1

    This👏 Looks👏Like👏Diarrhea.

  • @sehzadeselim863
    @sehzadeselim863 8 місяців тому +1

    You are great, keep going!

  • @timwhite7127
    @timwhite7127 2 роки тому

    I don't know jack or his little brother bull shit about computers but you still managed to get a chuckle outta me...

  • @meehdrescher
    @meehdrescher 2 роки тому +1

    i discovered your channel 15 minutes ago and i love it already

  • @darthmemeious9526
    @darthmemeious9526 2 роки тому

    i only klicked because of the thumbnail.. now iam hooked on fluid simulations

  • @nothingnothingnothing862
    @nothingnothingnothing862 Рік тому +2

    4:10 this looks like diarrea

  • @xE92vD
    @xE92vD 2 роки тому +1

    Oh yeah, a channel that will make my day.
    Humour and programming perfectly balanced.

  • @DamiemBlorp
    @DamiemBlorp 2 роки тому

    Lets goo! I just watched ur last video yesterday and thought I wasn't gonna see one for another few weeks. I'm blessed by the algorithm! Keep up the amazing work Gonkee, you're very underrated.

  • @Bonfere
    @Bonfere 2 роки тому +1

    This Was so Good and THe music choice was on point

  • @chopperhead2012
    @chopperhead2012 2 роки тому

    "I can't talk right now; I'm making PISS"
    _makes yellow fluid sim_

  • @frindjinny6
    @frindjinny6 Рік тому

    good to see micheal reeves is branching out

  • @alexanderzin
    @alexanderzin 2 роки тому

    Thanks! That thumbnail and title combo brightened up my day

  • @pixelprofessor471
    @pixelprofessor471 2 роки тому

    like a mix of dani, michael reeves and a bit of martincitopants.

  • @chubamoa3640
    @chubamoa3640 2 роки тому +2

    The sims pretty fluid, I like the yellow dye . Aria could be added to make it more legendary

  • @_edd.ie_.o.8101
    @_edd.ie_.o.8101 2 роки тому

    You know what they say if it's wet a squishy coming from your tushy, my friend you got...

  • @CariagaXIII
    @CariagaXIII 2 роки тому

    this is not diarrhea
    this is the pain of diarrhea

  • @endingalaporte
    @endingalaporte 2 роки тому

    oh ma, your sense of humor is of great quality, and I love your videos explaining how differential equations are implemented, keep it up

  • @yuperness8347
    @yuperness8347 2 роки тому

    my laptop would explode trying to handle these simulations

  • @maybehieu602
    @maybehieu602 2 роки тому

    pass by randomly on youtube feed and see mr.crackhead references, nice video btw

  • @mateklQ
    @mateklQ 2 роки тому +1

    I'm really glad I found your channel. Quality content right here, keep it up :)

  • @L8nnC
    @L8nnC 2 роки тому +1

    I just love your vidoes man! Keep it up and you will be a famous coder!

  • @jakajaka3064
    @jakajaka3064 2 роки тому

    The moment you said you are comitting a warcrime I got an add "join the military"

  • @idkcba
    @idkcba 2 роки тому +1

    Gonkee:u absorbe my wisdom by being here
    Me:Ahhhh, thats why my IQ test came back negative

  • @lzr_music
    @lzr_music Рік тому +1

    1:36 "fu-"
    - _Gonkee_

  • @ruslan_yefimov
    @ruslan_yefimov 2 роки тому +1

    Lmao, that's too funny - please stop, or I'll literally choke...

  • @joelpww
    @joelpww 2 роки тому

    Thanks for filling in for Michael. Genuinely enjoying the content

  • @iseraid1504
    @iseraid1504 2 роки тому

    Expired mountain dew for sure fills me with joy

  • @gaadigaguddu
    @gaadigaguddu 2 роки тому

    Doesn’t look like you know what, but I’m watching it while having one.

  • @starcups8522
    @starcups8522 2 роки тому

    "blue and transparent" big brain time

  • @godnyx117
    @godnyx117 Рік тому

    Your humor is GOD level!

  • @duckyman1755
    @duckyman1755 2 роки тому

    Viewer: haha your sim looks like diarrhea. Gonkee: The us's nukess pFFTT MORE LIKE MY NUKES(hits big red button)

  • @Nkazimulo_Mthembu
    @Nkazimulo_Mthembu Місяць тому

    "We start where everything starts... The "balls"."😂😂😂😂

  • @khalatelomara
    @khalatelomara 2 роки тому

    Legacy of steve jobs ....the all new iDieu-rea Fuf sim

  • @petruciani
    @petruciani 2 роки тому

    this is the best programming video i've seen in my life! ... this week

  • @MightyEFX
    @MightyEFX Рік тому

    love how beautifully uninspiring yet inspiring your videos are

  • @Kopellis
    @Kopellis 6 місяців тому

    A strong Michael reeves energy right here

  • @daldos9665
    @daldos9665 2 роки тому

    the left and right just bounching up and down

  • @Adroitbit
    @Adroitbit 2 роки тому

    "I have a bad case of diarrhea"
    "I have a bad case of diarrhea"
    *TUM TUM TUM*