Asteroids belt

Sdílet
Vložit

Komentáře • 47

  • @WebContractor7407
    @WebContractor7407 Před 3 lety +26

    I love how chaotic it looks when its just a lot of order its such a epic thought

  • @menu.config
    @menu.config Před 3 lety +67

    Bro. Some of them had like, moons, so cute

    • @hamsterdam1942
      @hamsterdam1942 Před 3 lety +3

      they don't have personal gravity

    • @hamsterdam1942
      @hamsterdam1942 Před 3 lety +4

      @xevix291 I'm talking about simulation in the video, and IIRC author said that the only gravity source there is the center of the screen

  • @aBigBadWolf
    @aBigBadWolf Před 3 lety +87

    How exactly to you convert the distance to neighbours to noise?

    • @PezzzasWork
      @PezzzasWork  Před 3 lety +65

      I tried to mimic Doppler effect by adjusting the pitch of a base sound depending on relative velocity. I also took into account the size difference so that big circles do have a lower sound

  • @jonathankiendrebeogo6523

    Amazing 🤩🤩🤩🤩🤩🤩🤩

  • @okboing
    @okboing Před 3 lety +8

    Hit each other damnit!

  • @aslipperysnake
    @aslipperysnake Před 3 lety +9

    Do you have this code somewhere? I’ve been wanting to make something similar.

  • @Lord_Sunday
    @Lord_Sunday Před 3 lety +14

    How did you deals with the fading tails? When I try implement something similar I get lots of lag.

    • @zamadatix
      @zamadatix Před 3 lety +13

      One way that takes constant time regardless of the number of bodies is to plot the tails to a texture that doesn't clear between frames and subtract 1 from each RGB channel per frame or 1 from the alpha channel if you are using a 32 bit texture. This will cause the tails to fade to black (or transparent) over time. Then for the image displayed for the frame use a copy of that texture from and draw the large dot representing the body and display that, generating this new each frame.
      There are other methods but this one is really cool because you can have a million particles tracing and merging and not have to keep re-render any state info about the past.

    • @FlorianWendelborn
      @FlorianWendelborn Před rokem

      @@zamadatix It’s not really constant for the amount of bodies. It has to draw one dot for every body onto the texture, so it’s O(n) instead of O(1). It is however constant regarding how long the trail is, as you’re not actually doing more work for longer trails which is nice

  • @Beatsbasteln
    @Beatsbasteln Před 3 lety

    mesmerising

  • @NTC
    @NTC Před 3 lety +2

    How could you make a trail light please?

  • @MarthinusBosman
    @MarthinusBosman Před 3 lety +3

    Is this done by set orbits? Doesn't look like a gravity calculation

    • @ksp-crafter5907
      @ksp-crafter5907 Před 3 lety +2

      Just 1 center gravity. The bodies don't attract each other.

  • @rxkshan
    @rxkshan Před 3 lety +1

    Can you make a universe simulator.

  • @theahmedmustafa
    @theahmedmustafa Před 3 lety +24

    Make tutorials for your videos. You will have serious traffic!

    • @MechanicalMooCow
      @MechanicalMooCow Před 3 lety +1

      This really isn't that complicated lmao... a literal junior high level physics class will give you all you need to recreate this. If you need to know how to program this, then you should be creating hello world programs using some basic programming tutorials.

    • @theahmedmustafa
      @theahmedmustafa Před 3 lety +1

      @@MechanicalMooCow Thanks for replying!
      I know this is rather easy. But there is stuff like Ant Colony Optimization and some other other cool videos I have seen on your channel which I and quite a few others may like to replicate

    • @MechanicalMooCow
      @MechanicalMooCow Před 3 lety +2

      @@theahmedmustafa agreed with the more complex videos.
      You may enjoy the channel Sebastian Lague and his latest video: X-iSQQgOd1A

    • @theahmedmustafa
      @theahmedmustafa Před 3 lety +3

      @@MechanicalMooCow He's the one who sent me here :p

    • @raphulali8937
      @raphulali8937 Před 3 lety

      @@MechanicalMooCow we like this chanel this is why we came here ...🥸🥸

  • @MichaeltLoL
    @MichaeltLoL Před 3 lety +10

    How's possible that it doesn't collide?

    • @PezzzasWork
      @PezzzasWork  Před 3 lety +15

      It is the consequence of a bug I found totally by accident :)

    • @pwouik9784
      @pwouik9784 Před 3 lety +14

      Balls were supposed to have collision but he forgot updating the speed and that converge to this

    • @PezzzasWork
      @PezzzasWork  Před 3 lety +12

      @@pwouik9784 Thank you for this perfect explanation

    • @hammielover225
      @hammielover225 Před 3 lety +3

      @@PezzzasWork so it retains kinetic energy? well you have some unstoppable forces now :D

    • @nf191
      @nf191 Před 3 lety

      ​@@PezzzasWork I just now saw the "Nice Bug" video and I immediately had in mind something like that. I think it could actually be useful to advance theories in astronomy. It will be cool to see more videos revolved around that concept.

  • @comachine
    @comachine Před rokem +1

    gpu temp 💀

  • @N25_CT13
    @N25_CT13 Před 2 lety

    u could make some effect with this

  • @talesdemidioful
    @talesdemidioful Před 3 lety +1

    allright, let me see if i got it right,:
    this simulation solved a situation where the asteroids will never collide again?

  • @sammyf4213
    @sammyf4213 Před 3 lety

    whats with the sine wave in the background lmao

  • @hermanni1989
    @hermanni1989 Před 3 lety

    Looks like most of them (if not all) are traveling in pairs. I guess going alone isn't stable state here or something.

    • @User36282
      @User36282 Před 3 lety

      I think there are many travelling one behind another because when he ran this originally, there would have been collisions, and they then get 'bumped' into a path that doesn't have collisions over time. You're seeing the paths with no collisions, and it's probably a given that there will be a few on that same path, and ones that are behind one another because the ones in front will have deflected others.

  • @Shdnfncidjen
    @Shdnfncidjen Před 3 lety +3

    How do they never collide!!!???

    • @U20E0
      @U20E0 Před 3 lety +5

      When they collide, the orbit is offset ( and the offset orbit has a possibility of not colliding ), and when they do not collide, the orbit stays ( which has no chance of colliding ).
      So it’s essentially natural selection.
      You just put a bunch of asteroids everywhere, and after some time you get this.
      There is a video titled ‘nice bug’ on his channel, which shows more of these

    • @Shdnfncidjen
      @Shdnfncidjen Před 3 lety

      @@U20E0 nice thank you!

  • @jabreo
    @jabreo Před 2 lety

    how tf did you zoom into the exact one i was watching

    • @krccmsitp2884
      @krccmsitp2884 Před rokem +1

      I guess that he put the drawing's origin to the current position of that object.

  • @anondude6361
    @anondude6361 Před 2 lety +1

    3 body problem solved