C++: Perlin Noise Tutorial

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024

Комментарии • 27

  • @ridhamsharma618
    @ridhamsharma618 27 дней назад +2

    ngl this explanation is underrated

  • @tigerding8418
    @tigerding8418 Месяц назад +1

    Elegant explanation. Seriously.

  • @drag0nblight
    @drag0nblight 7 месяцев назад +6

    Best explanation of Perlin Noise so far.

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

    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.

  • @ahmedhamed-of8xw
    @ahmedhamed-of8xw 12 дней назад

    very good explanation wow🥰🤩

  • @KS-qe9yu
    @KS-qe9yu Год назад +1

    This is an excellent video. Thanks a lot.

  • @gustafbstrom
    @gustafbstrom 10 месяцев назад

    Nice and clear. Well done.

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

    Great explanation, great animations, great video!

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

    What a great video

  • @MrPartzz
    @MrPartzz 6 месяцев назад

    Great explanation.

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

    Great video

  • @Y.Albasel
    @Y.Albasel 3 месяца назад

    This goes into my 3d terrain generator

  • @Astro_retired
    @Astro_retired 5 месяцев назад

    Amazing tutorial, straight and simple.

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

    amazing

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

    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

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

      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

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

    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.

  • @arthurklause5251
    @arthurklause5251 5 месяцев назад

    thx !

  • @Tarlecinia
    @Tarlecinia Месяц назад

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

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

    ❤❤

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

    🥵🥵🥵

  • @pshr2447
    @pshr2447 7 месяцев назад +3

    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 5 месяцев назад

      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.