Making a Better Particle Simulation in C++ (Part 2)

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 33

  • @josealvim1556
    @josealvim1556 13 годин тому +7

    One thing I love about circular particle simulations like those is the topological defects that arise when they all settle down, you can clearly see them around 24:17 just before the transition; just like microcrystaline grains, you can see the domain walls separating the big cells where the spheres are tightly packed. Very cool.

    • @keyframe41
      @keyframe41  11 годин тому

      Nice observation, but I think it might just be the video compression though. A defect I noticed is how the very bottom particles with a lot of pressure are inexplicably shifting to the right slowly, which doesn't happen with less particles/pressure, which is probably due to the collision detection

    • @Tkk-i6m
      @Tkk-i6m 11 годин тому

      also if you vibrate them the chunks become bigger, like heat treatment of metals

    • @aqua-bery
      @aqua-bery 2 години тому

      ​@@keyframe41 defects are supposed to form, that's just how circles pack together. It's very hard for them to pack perfectly after being continually launched like water lol

  • @jpgallegoar
    @jpgallegoar 3 дні тому +16

    The algorithm has delivered yet again

  • @Tkk-i6m
    @Tkk-i6m 10 годин тому +3

    your ability to get so far into a project without quitting is insane

  • @hmmmidkkk
    @hmmmidkkk 53 хвилини тому +1

    Danm man you're underrated af , I'd love to see more of your work ❤

  • @ivanmamulin2768
    @ivanmamulin2768 3 години тому

    5:43 ладно, я знаю почему мне это попалось в рекомендации 😂.
    Классное видео, чувак!

  • @ratchet1freak
    @ratchet1freak 5 годин тому

    instead of storing a list of particle indices for each grid you can sort the particles by grid index with counting sort. That way all particles in each gridcel are contiguous and you are not thrashing the cache looping over all particles in each cell.

  • @nuke_clear
    @nuke_clear День тому +4

    I was recommended your first video just now and I really enjoyed watching both the parts. I would love to finish my particle physics code some day but I always get too busy with my main projects. Looking forward to more such content.
    PS : It's nice to find somebody who watches the exact same youtubers I do lol

  • @splits8999
    @splits8999 14 годин тому +1

    oh wow, wow this looks like great quality and very inspiring, im blessed to have found this!

  • @sohailu8058
    @sohailu8058 2 дні тому +5

    Great video man! Please dont make the music too loud.

  • @Adamplaysbadminton
    @Adamplaysbadminton 21 годину тому +3

    Great vid! You should make some tutorials for people optimistic about coding 😁

  • @RayznGames
    @RayznGames 2 дні тому +2

    Wonderfull! Amazing work!

  • @baldi1640
    @baldi1640 10 хвилин тому

    Well done, I've got a simple question tho, wouldn't it be easier to draw the image using a simple fragment shader?

  • @williamist
    @williamist 2 дні тому +1

    i did not see your first video but particle simulations are pretty cool...

  • @alizohaibibn
    @alizohaibibn 2 дні тому +1

    This is fire bro!

  • @Reanore
    @Reanore 2 дні тому +1

    awesome video brody

  • @u2b842
    @u2b842 15 годин тому +1

    Awesome work here !! There is just something i don't really understand, verlet Integration is usable for a constant timestep (because of the fact i uses the 3 different instants so 2 timesteps) but when using it in a simulation like you did, I get results defying the laws of physics, and I think it might be related to timesteps 🤷, so can you help me a bit on that please ?(I am only starting to loearn C++, which is the reason i don't just read the code). Once again, love your work

    • @keyframe41
      @keyframe41  11 годин тому +1

      I'm not really getting what you're trying to say, but the code for part 1 is considerably easier to read, you can give it a try (the files are main_original, renderer_original, and solver_original)

    • @hmmmidkkk
      @hmmmidkkk 45 хвилин тому

      it could be because he is checking for collisions for a single frame, more than fps which he mentioned in the part 1 and your simulation might not be doing that , I'm no expert tho

  • @QWERTIOX
    @QWERTIOX 2 дні тому +3

    Algorithm gave me second video but not first

  • @只是約翰紐約市
    @只是約翰紐約市 2 дні тому +1

    Great!

  • @ghcstyyy
    @ghcstyyy 2 дні тому +1

    was on my fy

  • @ericb314
    @ericb314 2 дні тому +2

    Only 93 views? What

  • @ldlework
    @ldlework 6 годин тому

    all particle sims are in slow mo

  • @HarryLarsson-b2n
    @HarryLarsson-b2n 2 дні тому +1

    why does the wallpaper change every scene
    WHY IS YOUR TASKBAR ON THE TOP

  • @ivanmamulin2768
    @ivanmamulin2768 3 години тому

    Теперь оно должно сыграть bad apple)

  • @ttchef09
    @ttchef09 3 дні тому

    🔥

  • @shade4467
    @shade4467 2 дні тому +2

    Bruh my laptop can barely run 1000 particles😭

  • @Z0ctB0x
    @Z0ctB0x 9 годин тому

    Dam dis epic as f*ck