Noise vs Random in p5.js

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

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

  • @NOSHEDMANTIS
    @NOSHEDMANTIS 10 หลายเดือนก่อน +5

    Came here wanting to learn how to write my own Perlin Noise code in Java... kept watching and listening purely for your amazing energy. Much love :D

  • @vladm6892
    @vladm6892 5 ปีที่แล้ว +22

    I really like the attitude in these tutorials, really makes me even more excited about programming.

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

    I bought The nature of code book just because I like you so much!! ❤️

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

    When you plotted perlin noise on the graph with the ball moving left and right smoothly. It reminded me of what happens if you apply "random()" to acceleration. We essentially get smooth random movement. I wonder if that can count as a variation to perlin noise and if it would have too won an oscar lol.

  • @malibaturhan
    @malibaturhan 2 ปีที่แล้ว

    you're crazy, a genious. in every video of yours I believe that again. thank you for everything

  • @AK56fire
    @AK56fire 2 ปีที่แล้ว

    You are awesome. I wish I had that kind of energy in day to day life. Life would be so incredible daily.

  • @sirporksword8172
    @sirporksword8172 8 ปีที่แล้ว +54

    best teacher ever! Thank you very much.

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

    It would be great if you can explain the map() function and the values in there, keep up the great work !

  • @ratixyz
    @ratixyz 7 ปีที่แล้ว +5

    THIS WAS SO COOL 😭 ❤️.

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

    That was beautiful. Bravo sir!

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

    Thanks!

  • @klauspeter2199
    @klauspeter2199 5 ปีที่แล้ว

    Wow that's really a nice way to explain it

  • @emalorenzo2415
    @emalorenzo2415 2 ปีที่แล้ว

    great explanation sensei

  • @lukedavis2100
    @lukedavis2100 3 ปีที่แล้ว

    merry christmas and happy new year

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

    Hello, when I try to run my script it says that map is not defined.
    code: var y = map(noise(100),0,1,0,height);
    I have loaded p5.js in my html file.
    btw: you are my favorite teacher ever!

    • @mavast644
      @mavast644 7 ปีที่แล้ว

      nvm I ran map() outside of a function i'm a dumbass XD

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

      No worries, glad you worked it out!

  • @tshichan
    @tshichan 5 ปีที่แล้ว

    8:54 my mouse on the X button
    8:55 "Don't go!!" me replying OK!! with a big laugh

  • @diegoferreira3444
    @diegoferreira3444 4 ปีที่แล้ว

    Cool

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

    what was the reason of applying map( ) there, i didnt get it. :p

    • @asdfasdf-tp7fm
      @asdfasdf-tp7fm 7 ปีที่แล้ว +8

      map transforms a value from a given range (0 to 1 in the case of noise()) into a value from another range. for example, if we choose a random number between 0 and 10 and get a 5, and map that number between 50 and 100, it will become 75. this is because 5 is halfway between 0 and 10, and 75 is halfway between 50 and 100.

  • @m0nologger
    @m0nologger 7 ปีที่แล้ว +2

    Every time I try to call the random function in console, I just get an undefined error.

    • @TheCodingTrain
      @TheCodingTrain  7 ปีที่แล้ว +2

      +Sounds From The Attic you have to be on a page that has the p5 library loaded.

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

      Just to clear Dan's answer, and to help other p5.js newbies (like me), "p5 library loaded" actually means having the setup() and draw() function included (even empty) in a js file loaded in the page in question.

  • @xuefangzheng6454
    @xuefangzheng6454 5 ปีที่แล้ว

    Hi, I cannot find the code in the link u attached to this video.

    • @TheCodingTrain
      @TheCodingTrain  5 ปีที่แล้ว

      Ack, I'm not sure what happened to it. Would you find filing an issue here as a reminder? github.com/CodingTrain/website/issues

  • @ispeakforthebeans
    @ispeakforthebeans 4 ปีที่แล้ว

    this is so beautiful so amazing so awesome dbvehebfhesche im losing it

  • @cap-advaith
    @cap-advaith 5 ปีที่แล้ว

    these guys are called TEACHERS not the one in my school.....

  • @jakekaminski6936
    @jakekaminski6936 5 ปีที่แล้ว +27

    Excellent exposition of x-position 🙂

  • @gokulnc4501
    @gokulnc4501 4 ปีที่แล้ว +2

    For anyone looking for how to run P5.js on your local machine like him:
    th-cam.com/video/UCHzlUiDD10/w-d-xo.html
    Introduction to P5.js:
    th-cam.com/video/8j0UDiN7my4/w-d-xo.html

    • @zxgik
      @zxgik 4 ปีที่แล้ว

      THANK U SO MUCH !!!

  • @ChrispyByDefault
    @ChrispyByDefault 6 ปีที่แล้ว +7

    Your videos are life savers!

  • @escape0707
    @escape0707 5 ปีที่แล้ว +4

    Nice intro! Guys, loop starting from 8:49 plz! XDD

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

      I mean exactly 8:55 to 9:00

  • @pairot01
    @pairot01 8 ปีที่แล้ว +4

    As always, very interesting things you bring about.

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

    so the value of noise on a particular xoff is almost the same at each frame....but what we do to get the smooth randomness is getting the noise value of a xoff over and over again but we change the xoff or add the xoff for each frame?

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

    Me gusta

  • @MrJohnakel
    @MrJohnakel 3 ปีที่แล้ว

    7:30 ,,, that number isn't changing, why ? because that number is the same all the time!! ))))

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

    Thank you for teaching the Nature of code and the excellent explanations 😊

  • @canalbomon
    @canalbomon 4 ปีที่แล้ว

    why I can't use random() function in console? I try in html hardcode and it works, but dont works in console?

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

    interesting. Thanks so much for great tutorial

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

    Great teacher. Thanks

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

    Awesome teaching, thank You so much!

  • @hv1461
    @hv1461 4 ปีที่แล้ว

    Hi, I enjoy your videos and appreciate what you teach us buy why are you so hyper ? (serious question)

  • @caroylngriffen5124
    @caroylngriffen5124 3 ปีที่แล้ว

    d

  • @aidanhamilton308
    @aidanhamilton308 6 ปีที่แล้ว

    Its been up over a year and a half and it still has no dislikes, shows how good this guy is!