Coding a Fluid Simulation with my Last 2 Brain Cells

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2021
  • github.com/Gonkee/Gepe3D
    Music by LAKEY INSPIRED
    / lakeyinspired
    Music - THYKIER - Shimmer [NCS Release]
    • THYKIER - Shimmer | Te...
  • НаукаНаука

Комментарии • 1,1 тыс.

  • @carrotylemons1190
    @carrotylemons1190 2 года назад +4218

    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 года назад +2859

    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 года назад +67

      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 года назад +120

      @@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 года назад +1436

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

  • @Taygetea
    @Taygetea 2 года назад +2068

    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 года назад +56

      No it’s just the dry humor of programmers

    • @Taygetea
      @Taygetea 2 года назад +37

      @@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 года назад +207

    "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 года назад +263

    This is the best representation of what programming feels like

  • @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.

  • @gergodemeter5553
    @gergodemeter5553 2 года назад +371

    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.

  • @klonanbrown2807
    @klonanbrown2807 2 года назад +98

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

  • @GrantKot
    @GrantKot 2 года назад +9

    I seem to have awakened an anime pootagonist.

  • @coffzor123
    @coffzor123 2 года назад +143

    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.

  • @ArsonSnowman
    @ArsonSnowman Год назад +9

    Looks like spicy diarrhea

  • @shaladddin5687
    @shaladddin5687 2 года назад +30

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

  • @texti_animates
    @texti_animates Год назад +7

    this looks like diarhea

  • @hk8769
    @hk8769 20 дней назад +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

  • @unitysparticlesystem
    @unitysparticlesystem 2 года назад +21

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

  • @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.

    • @trevorthieme5157
      @trevorthieme5157 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!

  • @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.

  • @LeshaTheBeginner
    @LeshaTheBeginner 8 месяцев назад +2

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

  • @mateklQ
    @mateklQ 2 года назад +1

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

  • @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 RUclips money

  • @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.

  • @fatitankeris6327
    @fatitankeris6327 2 года назад +3

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

  • @the_kid777
    @the_kid777 4 месяца назад

    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.

  • @grandplat3462
    @grandplat3462 2 года назад +5

    I genuinely respect this man's dedication

  • @Zedoy
    @Zedoy 2 года назад +10

    It looks like golden 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

  • @mani_mincraft
    @mani_mincraft 8 месяцев назад +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!

  • @wwestrongmans
    @wwestrongmans 2 года назад +3

    The water in coding moment is really vibing so well

  • @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

  • @markusheimerl8735
    @markusheimerl8735 2 года назад +1

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

  • @Bonfere
    @Bonfere 2 года назад +1

    This Was so Good and THe music choice was on point

  • @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

  • @kcayos3970
    @kcayos3970 2 года назад +3

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

  • @L8nnC
    @L8nnC 2 года назад +1

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

  • @meehdrescher
    @meehdrescher 2 года назад +1

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

  • @SytheZN
    @SytheZN 2 года назад +72

    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".

  • @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.

  • @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.

  • @MightyEFX
    @MightyEFX Год назад

    love how beautifully uninspiring yet inspiring your videos are

  • @huntie1608
    @huntie1608 Год назад +4

    This looks like diariea

  • @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.

  • @lucasnogueira3232
    @lucasnogueira3232 2 года назад +2

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

  • @NoOneIsHere.TryLater
    @NoOneIsHere.TryLater 2 года назад

    this is the most ive laughed from a youtube video in a long time. Your videos are great

  • @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)

  • @Xphy
    @Xphy 2 года назад +3

    I just love youu and how funny u r

  • @niklasneighbor6726
    @niklasneighbor6726 2 года назад +2

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

  • @nononononononononono2045
    @nononononononononono2045 2 года назад

    I love your approach to programming

  • @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

  • @positivenozy6065
    @positivenozy6065 Год назад +4

    it looks like diarea

  • @IamPyu-v
    @IamPyu-v Год назад +1

    This looks like Scratch could make a good first impression

  • @tasya_nabila
    @tasya_nabila 2 года назад

    I actually really happy to found your channel. It makes me wanna start my flutter project to make application that can receive data from WiFi module 😭

  • @MC5677
    @MC5677 Год назад +3

    4:18 this looks like diarrhea

  • @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.

  • @xE92vD
    @xE92vD 2 года назад +1

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

  • @alexanderzin
    @alexanderzin 2 года назад

    Thanks! That thumbnail and title combo brightened up my day

  • @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

  • @inuka6969
    @inuka6969 2 года назад +3

    *diarrhea*

  • @joelpww
    @joelpww 2 года назад

    Thanks for filling in for Michael. Genuinely enjoying the content

  • @albrrrt
    @albrrrt 2 года назад

    my man your videos are great, we all suffer together in each one's path

  • @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

  • @ClemoVernandez
    @ClemoVernandez 2 года назад

    Hilarious video! Longer ones would be great

  • @amukh1_dev274
    @amukh1_dev274 Год назад +1

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

  • @Luted09
    @Luted09 9 месяцев назад +1

    i would love some *expired mountain dew*

  • @user-du8rw6tb6r
    @user-du8rw6tb6r Год назад

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

  • @flamelizard
    @flamelizard 2 года назад +1

    That was very helpful actually😁 thanks for the input! I am trying to implement fluid simulation as well. But I thought more into 2D Navier Stokes implementation with grid cells just like the Fluid Ninja plug-in for Unreal Engine. In the manual, it’s also explained more or less on how it’s implemented if you wanna take a look

  • @ashisharky
    @ashisharky 2 года назад

    The fucking music time-lapse part was absolutely amazing

  • @sehzadeselim863
    @sehzadeselim863 5 месяцев назад +1

    You are great, keep going!

  • @gabe.henrique
    @gabe.henrique 2 года назад +2

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

  • @withernator
    @withernator 2 года назад +1

    Love your videos man

  • @TheDream975
    @TheDream975 2 года назад

    Please keep doing coding videos ! This shit is hilarious

  • @BroncoGammon
    @BroncoGammon 2 года назад +1

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

  • @Dwaynetherock
    @Dwaynetherock Год назад

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

  • @virtualcombat4863
    @virtualcombat4863 2 года назад +1

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

  • @russellg3775
    @russellg3775 2 года назад

    Gonkee, you are awesome, liked and subscribed! As a side note, speak to your doctor about increasing your medication.

  • @petruciani
    @petruciani 2 года назад

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

  • @cade9491
    @cade9491 2 года назад

    This is only the second video after the physics engine one i have watched from you and bro i have never laughed in a tech youtube video this much, you are hilarious hhh

  • @disinlungkamei2869
    @disinlungkamei2869 3 месяца назад

    nice video bro you are talented all the best

  • @NFSHeld
    @NFSHeld 2 года назад

    At this point, I'm impressed you have not just given up and gone the "let a neural network figure out what any node on an object should behave like" route for even more labour intensive disappointment.

  • @crunch7909
    @crunch7909 2 года назад +1

    Getting strong Michael Reeves vibes from your videos

  • @jakajaka3064
    @jakajaka3064 2 года назад

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

  • @omgle118
    @omgle118 2 года назад

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

  • @TheFatherCharles
    @TheFatherCharles 2 года назад +1

    Awesome video man

  • @priyanshuindra4648
    @priyanshuindra4648 2 года назад

    bro I just love your videos...

  • @thegamingdragonslayer6972
    @thegamingdragonslayer6972 2 года назад +1

    Really underrated channel

  • @NicholasRehm
    @NicholasRehm 2 года назад +1

    Here before the Michael Reeves collab

  • @mrtaco5956
    @mrtaco5956 2 года назад +2

    this guy is so underrated

  • @AstroSamDev
    @AstroSamDev 2 года назад +1

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

  • @DjLeonSKennedy
    @DjLeonSKennedy 2 года назад

    Looks amazing!

  • @nothingnothingnothing862
    @nothingnothingnothing862 Год назад +2

    4:10 this looks like diarrea

  • @gaadigaguddu
    @gaadigaguddu 2 года назад

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

  • @xedvap
    @xedvap 2 года назад

    You have very entertaining videos.

  • @_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...

  • @grizlethebear8652
    @grizlethebear8652 2 года назад +1

    This👏 Looks👏Like👏Diarrhea.

  • @chubamoa3640
    @chubamoa3640 2 года назад +2

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

  • @dienzer9098
    @dienzer9098 2 года назад

    hey gonkee, i am glad you are working on fluid simulation. i'd reccomed you check out MH's fluid simulation book

  • @nandukrishna8142
    @nandukrishna8142 2 года назад

    You know it took me years trying to do some physics stuff and finally I have something that works fine

  • @daldos9665
    @daldos9665 2 года назад

    the left and right just bounching up and down

  • @frindjinny6
    @frindjinny6 Год назад

    good to see micheal reeves is branching out

  • @godnyx117
    @godnyx117 Год назад

    Your humor is GOD level!