C++: Perlin Noise Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 28

  • @ridhamsharma618
    @ridhamsharma618 3 หลายเดือนก่อน +3

    ngl this explanation is underrated

  • @drag0nblight
    @drag0nblight 9 หลายเดือนก่อน +8

    Best explanation of Perlin Noise so far.

  • @tigerding8418
    @tigerding8418 3 หลายเดือนก่อน +2

    Elegant explanation. Seriously.

  • @arthursmalle2276
    @arthursmalle2276 หลายเดือนก่อน

    Thanks for the good explanation 👍
    very clear and down to business

  • @KS-qe9yu
    @KS-qe9yu ปีที่แล้ว +2

    This is an excellent video. Thanks a lot.

  • @rafa_br34
    @rafa_br34 6 หลายเดือนก่อน

    I can't deny I loved the time and dedication you put into this video, and I found it underrated even (honestly we need more quick videos like that guide through the theory and the implementation).
    Some improvements could be made, for instance, when describing how octaves work you could have shown all the images used to create the final result (maybe even a legend with the parameters used), but that's just my opinion.
    Also (not that I have anything against SFML, in fact I myself have used it) but it might be interesting to mention other (considerably easy) ways of encoding images for people with less C++ experience (PPM, some single header PNG encoder, etc).
    Again, that's just my opinion on the changes that could be made, your explanation of how the algorithm works was basically perfect. I will definitely be looking forward to more content of yours.

  • @Juss_Chillin
    @Juss_Chillin ปีที่แล้ว +3

    Great explanation, great animations, great video!

  • @ahmedhamed-of8xw
    @ahmedhamed-of8xw 2 หลายเดือนก่อน

    very good explanation wow🥰🤩

  • @Astro_retired
    @Astro_retired 8 หลายเดือนก่อน

    Amazing tutorial, straight and simple.

  • @Y.Albasel
    @Y.Albasel 5 หลายเดือนก่อน

    This goes into my 3d terrain generator

  • @MrPartzz
    @MrPartzz 8 หลายเดือนก่อน

    Great explanation.

  • @gustafbstrom
    @gustafbstrom ปีที่แล้ว

    Nice and clear. Well done.

  • @Mochu_s_Junkyard
    @Mochu_s_Junkyard 6 หลายเดือนก่อน

    What a great video

  • @yugsolanki4766
    @yugsolanki4766 ปีที่แล้ว +1

    Great video

  • @varshneydevansh
    @varshneydevansh ปีที่แล้ว +1

    amazing

  • @hellfire0332
    @hellfire0332 ปีที่แล้ว +1

    Great video. If you wanted to wrap the noise on the left and right edges so that they flow smoothly (such as in a terrain generated world map), what modifications would you need to make to this code?

    • @vladmunteanu5864
      @vladmunteanu5864 ปีที่แล้ว

      You'd probably have to take the module of your x and y coordinates depending on the size of the texture you want

  • @kilianvounckx9904
    @kilianvounckx9904 ปีที่แล้ว +1

    Awesome video, learned a lot!
    One question: in the main function, you create the pixel array with new, but never use delete. Does this mean it is leaked?

    • @zipped1214
      @zipped1214  ปีที่แล้ว

      Thank you, glad it helped! That's an excellent question and you're totally correct, that's a mistake and I should have called delete on it before ending the program. The program memory will still be freed once it closes, so the memory isn't really leaked, but if we had a longer program or called the main function in a loop for some reason, then yes that could become a problem. Nicely done on spotting that!

    • @kilianvounckx9904
      @kilianvounckx9904 ปีที่แล้ว

      @@zipped1214 Since I only learned c++ last year, I was told to always use a std::array, never raw arrays. It will take care of this automatically with RAII

  • @athuldas44
    @athuldas44 5 หลายเดือนก่อน

    i have a doubt interpolation is something that runs in a loop but you run it only once here like what this actually gets you anyone

  • @arthurklause5251
    @arthurklause5251 8 หลายเดือนก่อน

    thx !

  • @Tarlecinia
    @Tarlecinia 3 หลายเดือนก่อน

    Can you do it for python and without using noise module? Your video is very good but i can only code python not cpp👍👍

  • @delqyrus2619
    @delqyrus2619 6 หลายเดือนก่อน

    0:43 Because you fade it in and out there is no real visual difference between the two. A sharp edge bewtween them would visually show the difference more.

  • @oliverpetrovic3689
    @oliverpetrovic3689 ปีที่แล้ว

    ❤❤

  • @SomeGamerDoesGaming
    @SomeGamerDoesGaming ปีที่แล้ว +1

    🥵🥵🥵

  • @pshr2447
    @pshr2447 10 หลายเดือนก่อน +4

    Random Gradient function should've been explained in detail, saying that it's out of scope of the video just feels wrong. That part feels like an interesting aspect don't suppose it's out of scope, unless this video is just supposed to explain only the Math and not the code in which case it is incorrectly titled. I'm not a hater.

    • @Astro_retired
      @Astro_retired 8 หลายเดือนก่อน

      It's just a deterministic function to avoid precalculating random vectors. You can easily replace it by creating a two-dimensional array with percalculated vectors and use it instead of calculating those vectors every time. Probably that's the reason why he didn't explain this function, it's not necessarily a part of generating perlin noise.