Тёмный

Perlin Noise in p5.js 

Подписаться
Просмотров 282 тыс.
% 5 418

In this new multi-part Perlin Noise Tutorial, I show you what Perlin noise is and how it can be used in creative coding, more specifically with the p5.js library. In Part I.2 of this series, I introduce you to what Perlin noise is, how it's created and its history. Code: thecodingtrain.com/tracks/the-nature-of-code-2/noc/perlin/intro-to-perlin-noise
🎥 Next video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YcdldZ1E9gU.html
🎥 All videos: ru-vid.com/group/PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
References:
🔗 noise(): p5js.org/reference/#/p5/noise
Timestamps:
0:00 Welcome!
0:45 Random() and noise()
1:14 Perlin noise
2:00 Procedural textures
5:04 Perlin noise values over time
7:10 How is Perlin noise generated?
8:05 Cosine interpolation
9:36 Adding the octaves
11:30 Thanks for watching!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
✪ Nebula: go.nebula.tv/codingtrain
💖 Membership: ru-vid.comjoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: thecodingtrain
📸 Instagram: the.coding.train
🎥 Coding Challenges: ru-vid.com/group/PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: ru-vid.com/group/PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js

Опубликовано:

 

23 июн 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 180   
@vadertaner
@vadertaner 3 года назад
The fact that's someone with your knowledge and intellect would simply give us this knowledge with a smile an an incredible energy goes to show that the world is a good place.
@andresbriceno526
@andresbriceno526 2 года назад
true
@R4RaghavS
@R4RaghavS 2 года назад
@@andresbriceno526 very true
@aidanbenbow6682
@aidanbenbow6682 Год назад
Well, I think it's more the God who made the world that's good, the world itself is still a work in progress!
@sofiafranc
@sofiafranc Год назад
I just fell here, without any understanding about the subject, and I understood everything. Thank you so much, simplifying is one of the hardest things to do - you did it!
@graydhd8688
@graydhd8688 Год назад
"I'm dividing it by half", so, you're doubling it? Lol, much love for your videos. Getting into programming and finding your channel has me excited about brushing up on my math skills I haven't used in 10 years
@milestincknell8889
@milestincknell8889 8 лет назад
Your knowledge and energy is off the scale! Loving this a lot, and looking forward to more!
@tiopetinho
@tiopetinho 4 года назад
He's just so excited about Perlin noise, it's contagious. It's really sweet.
@CamilaHernandez-um6on
@CamilaHernandez-um6on 8 лет назад
I am very grateful and happy that these tutorials exist. I study arts and when I met Processing, I knew I had to use it as a tool for a work of art. thank you so much :)
@mightfloat9365
@mightfloat9365 Месяц назад
You're the only teacher that made me understand this concept. Thank you!
@arkondigital1496
@arkondigital1496 Год назад
Always grateful to see a great teacher explaining complicated things in so much more understandable ways
@nicktailor8062
@nicktailor8062 4 года назад
Dude I'm a game dev student at uni, always trying/looking for new languages to learn. I found your sfml videos soo helpful for my first year and somehow you're always popping back up whenever I try learning something new! its great since you're such an excellent teacher! Keep it up! really appreciate the hard work you're putting in
@konfuzius7743
@konfuzius7743 Год назад
hey, i know im a bit late, but the way you explain it and manage to mix in the humor is really awesome thank you for the knowledge and the laughts i got from this vid
@Illogical.
@Illogical. Год назад
You are one of the most energetic people I have seen in a while.
@LukeHogan-s2k
@LukeHogan-s2k 3 месяца назад
Wow. This is one of the best videos I have seen on a coding topic...ever. Can't wait to watch more.
@Jilinhall
@Jilinhall 4 месяца назад
this is actually such a smart way to generate a random but smooth-ish curve!
@souvikroy6237
@souvikroy6237 4 года назад
I am addicted to your teaching style ♥️
@AhmadAlMutawa_abunoor
@AhmadAlMutawa_abunoor 8 лет назад
I watched the 2:30 hours version before this. You are awesome. Keep up the good work.
@thomaswaller4517
@thomaswaller4517 8 лет назад
so did I!
@angelofdemons1340
@angelofdemons1340 8 лет назад
Same :p
@goldthumb
@goldthumb Год назад
Daniel is a true expert in explaining things.
@ugy2
@ugy2 8 месяцев назад
Great series! With an awareness of how pedantic this is: if you divide by half, you double!
@catlord69
@catlord69 5 лет назад
wow, this idea is brilliant ! Imagine you work on a movie and someone requests "random shapes". You think about it, make an algorithm as best as you can...and then win a huge prize, because you invented something so inovative
@MrBmxerFTW
@MrBmxerFTW 7 лет назад
when i discovered processing/cinder/OF I knew i had to use it for design, thanks for sharing your knowledge
@RedsBoneStuff
@RedsBoneStuff 7 лет назад
Thank you for doing something helpful for humanity. These tutorials really are the best.
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thanks for watching!
@skullaveraz
@skullaveraz 6 лет назад
hahah dude, you're a genius with the sense of humour to boot! Love you videos!
@thatrealguylogan
@thatrealguylogan 2 года назад
wow, this video is great because of your personality and energy, it make the video less of just normal tutorial and more of a conversation and because of that it is very easy to learn and catch on to things, so thank you this helps a lot!!!
@mclandeg1
@mclandeg1 Год назад
Ok i am gonna say that: Providing this content for free is making you top 1% human, but your energy is at different level. Bless you 🫶🏽🫶🏽
@baala333
@baala333 Год назад
the world need to create x number of clones of you sir, x being total teachers required in the world
@dlago1352
@dlago1352 4 года назад
Congrats to 1 million subs.
@RaviYadav-nj8zh
@RaviYadav-nj8zh 4 года назад
Man he is always so happy ❤️❤️
@jonasls
@jonasls 7 лет назад
wow, I created my own noise a few years ago when I was 12, and it's basically perlin noise.
@fabianrohrhofer
@fabianrohrhofer 2 года назад
simply love your style of beeing
@jennifer7chan
@jennifer7chan 7 лет назад
That tron from 1986 is amazing. every scene is like a painting.
@JavSusLar
@JavSusLar 3 года назад
Actually 1982. Jeff Bridges is the main character!
@marinahurtado4808
@marinahurtado4808 4 года назад
You have saved me from failing a german p5js course (i don't speak german)), thank you
@muskan5913
@muskan5913 Год назад
bro youre literally the best
@jorgeferreira6727
@jorgeferreira6727 3 года назад
Something about this Perlin noise explanation made remember the Fourier Transform on periodic signals.
@xponentialdesign
@xponentialdesign 8 лет назад
thank you for making this information edible for my brain
@TheCodingTrain
@TheCodingTrain 8 лет назад
Glad to hear!
@lithampiyakhe2588
@lithampiyakhe2588 5 лет назад
LMAO dude.. Yeah.. This is exactly the sort of thing that would make my mind choke!!
@jooyeonchoi7500
@jooyeonchoi7500 7 лет назад
I want you to be my lecturer, hands down you're the best!
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thanks so much!
@devendradhakad6164
@devendradhakad6164 Год назад
thank you sir for this tutorial .... i'm from india 🚩❤
@DevDungeon
@DevDungeon 2 года назад
Beautiful explanation! I didn't realize it was so simple.
@CyCloNeReactorCore
@CyCloNeReactorCore 2 года назад
its not lmao, he didn't explain the entire thing..
@chanasiegel2706
@chanasiegel2706 4 года назад
6:14 I am looking forward to that, let me know when it comes out.
@ankita-mishikar116
@ankita-mishikar116 3 года назад
And how I seriously want him to do a perlin noise performance video is just hilarious
@aryamankejriwal5959
@aryamankejriwal5959 5 лет назад
You should get a perlin noise digits book!
@Gapklm
@Gapklm 2 года назад
I just get into this topic that I am start thinking I am superlate. Good to know this. Thank you I will sucscribe your video.
@TheFishKing64
@TheFishKing64 4 года назад
The start of the video was basically Dan saying how bad his art is while trying to draw stuff and i love it
@proccessingunit2337
@proccessingunit2337 8 лет назад
Do you work for the company that made Processing? You're on the home page
@TheCodingTrain
@TheCodingTrain 8 лет назад
Yes, although it's really just a small group of volunteers: processingfoundation.org/
@ramalshebl60
@ramalshebl60 Год назад
9:28, nope, if you're dividing it by half then you're doubling it, but don't worry we get the point, great video
@zyaro_2194
@zyaro_2194 6 лет назад
"I'm dividing it by half
@TheCodingTrain
@TheCodingTrain 6 лет назад
doh
@geckobra
@geckobra 4 года назад
I heard about perlin noise when I was watching minecraft videos. It is very interesting to learn what it is :DD
@LoadNewYear-g3i
@LoadNewYear-g3i Месяц назад
If this guy was my teacher, I'd go to school even on sundays.
@luisjoseprofesor
@luisjoseprofesor 4 года назад
Would you have a video where you finally make the "hair like" piece you show at the beginning? I couldn't find that example on any of the 12 videos of this (great) video series. Thanks!
@TheCodingTrain
@TheCodingTrain 4 года назад
Ah, sorry, I think this is what you are looking for? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BjoM9oKOAKY.html
@IMHGfk
@IMHGfk 3 года назад
"Perlin noise performance art"
@andreseiji1912
@andreseiji1912 Год назад
Your videos are amazing!!! You can show us art, science and programming. Thanks :)
@donatellobruno
@donatellobruno 8 лет назад
I love this. Thank you so much for all your videos Daniel!
@TheCodingTrain
@TheCodingTrain 8 лет назад
thank you!
@TavartDukod
@TavartDukod 3 года назад
You are describing fractal value noise (en.wikipedia.org/wiki/Value_noise). Perlin noise isn't fractal by default and is a variant of gradient noise, not value noise.
@CodingwithIndy
@CodingwithIndy 4 года назад
master at work!! Informative and Enjoyable! How does he do it?!
7 лет назад
i love the tron movies, great video series dan!
@tokyo-code-girl
@tokyo-code-girl 3 месяца назад
Where is the perlin noise performance art video, this would be amazing :)
@AnkushSingh-hi6gj
@AnkushSingh-hi6gj 8 лет назад
Your videos are very informative. Thanks for making such awesome videos.
@TheCodingTrain
@TheCodingTrain 8 лет назад
Thanks!
@psjjj7558
@psjjj7558 Год назад
Very helpful and very fun! thanks!
@syedmuhammadaliraza3069
@syedmuhammadaliraza3069 3 года назад
Sir can't it be created like Let x=1 x=+(Maths.random()*2)-1 //x adds no between -1 and +1
@maddriven07
@maddriven07 3 года назад
Man I love this guy!
@jos9573
@jos9573 7 лет назад
I love how you're pretty much doing what you mentioned at 6:14 nowadays with your million random digits book. :D
@TheCodingTrain
@TheCodingTrain 7 лет назад
haha
@chanasiegel2706
@chanasiegel2706 4 года назад
How is that one dimension? You have Time and the number Value/Range
@HISEROD
@HISEROD 4 года назад
The noise algorithm has only 1 input; so, it is 1D noise. But, the graph of this noise is indeed 2D. Take the 2D distance function *distance(x, y) = √(x^2 + y^2)* for example. You wouldn't call it a 3D function, but an additional dimension is required to visualize it (2 for the inputs + 1 for the output).
@chanasiegel2706
@chanasiegel2706 4 года назад
@@HISEROD I get it, thank you so much.
@MarinusMakesStuff
@MarinusMakesStuff 5 лет назад
I can't seem to find the video in which to make the work that is shown in the beginning. Could it be that it is missing?
@TheCodingTrain
@TheCodingTrain 5 лет назад
here you go! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BjoM9oKOAKY.html
@terayu3166
@terayu3166 4 года назад
But what's the reason that Perlin Noice is so important that you willing to make a bunch of videos around it? Or just for fun haha. And much thanks for all of those videos : ) their influences are propound. I built almost all of my p5 skill based on them!
@sweethomes674
@sweethomes674 Год назад
Wonderful 😊
@erinweiss8172
@erinweiss8172 2 года назад
he learned how to edit his videos! mazal tov!
@bhootpurvmanusya
@bhootpurvmanusya 8 месяцев назад
just watched tron. the correct one.
@bronxbassist
@bronxbassist 2 года назад
still looking for the perlin noise performance art follow up video
@lovechains6790
@lovechains6790 6 лет назад
is it true humans can't pick random numbers?
@jamestheotherone742
@jamestheotherone742 5 лет назад
No the human brain is pretty good at picking random numbers because the "seed" for it is so complex as long as they don't habitually pick a "favorite number".
@okie9025
@okie9025 5 лет назад
If you ask any human to pick 100 random numbers, most of the time the biggest streak od numbers they have is 3, so no
@jamestheotherone742
@jamestheotherone742 5 лет назад
@@okie9025 Or is it 17? Or 12? Or 7? None of the studies or experiments agree. So, yes. Look! Ask a question in a comments sections and generate a boolean randomizer! ;)
@okie9025
@okie9025 5 лет назад
@@jamestheotherone742 wat
@jamesringle697
@jamesringle697 5 лет назад
Humans are notoriously bad at picking random number sequences. Check this out or any of the many other papers written on the topic www.ncbi.nlm.nih.gov/pubmed/17888582. Caldwell doesn't know what he's talking about.
@Priya_dancelover
@Priya_dancelover 2 года назад
You are awesome 😎
@wandeson3205
@wandeson3205 5 лет назад
A paper with explanation detailed about this for study this topic?
@danielf.7151
@danielf.7151 7 лет назад
I know I'm super late to the party, but the wuestion is bugging me: a while ago, I saw a video on value noise, and it was descirbed the same way. so, does that mean that perlin noise and value noise are the same?
@portalsrule1239
@portalsrule1239 6 лет назад
Super late to the super late. But I think this will answer your question. computergraphics.stackexchange.com/questions/3608/benefit-of-perlin-noise-over-value-noise/3609
@owengrimm1370
@owengrimm1370 5 лет назад
@@portalsrule1239 Super late to the super late to the super late, but hi!
@Gabrieltf141
@Gabrieltf141 3 года назад
@@owengrimm1370 Does still late?
@richardjamesbunker
@richardjamesbunker 3 года назад
It's now 2021 and the question is do we have a Perlin Noise performance video yet? +1 from me please!!!
@elperro38
@elperro38 7 лет назад
This channel is love
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@JavSusLar
@JavSusLar 3 года назад
1:31 as a matter of fact, TRON wasn't even nominated in the Best Visual Effects category. Academy members considered they were cheating because they used computers. Clairevoyants... (Perlin received the Oscar in 1996 for the technical achievement, but the film never did)
@clarencesmith2060
@clarencesmith2060 4 года назад
I like your videos. But what you explain in this video is not Perlin noise. It's value noise. Perlin noise uses gradients, and doesn't use cosine interpolation, but linear interpolation in combination with a fade function instead.
@thorham1346
@thorham1346 4 года назад
Indeed.
@claudiussramos5228
@claudiussramos5228 2 года назад
Amazing
@ThatGuyNamedBender
@ThatGuyNamedBender 4 года назад
Does he have a Processing version of these tutorials?
@angelcaru
@angelcaru 3 года назад
Yes! This is a remake of the original NOC, which was built on Processing, on p5.js.
@knodelcrafter6888
@knodelcrafter6888 8 лет назад
How many Open Series do we have
@sergodobro2569
@sergodobro2569 2 года назад
Isn't it just a fractal noise, not perlin? Video is still great and interasting to watch!
@hiems147
@hiems147 8 лет назад
Hi, I love watching your video's and I'm learing a lot. Could you publish your processing code for this? Thx!
@TheCodingTrain
@TheCodingTrain 8 лет назад
It's on github now: github.com/CodingRainbow/Rainbow-Code
@ChrispyByDefault
@ChrispyByDefault 7 лет назад
Great video!
@DerekKinsman
@DerekKinsman 8 лет назад
"Halving" is the word you're looking for.
@TheCodingTrain
@TheCodingTrain 8 лет назад
haha, thanks
@sadhlife
@sadhlife 7 лет назад
dividing by half, lol
@glottalstop2080
@glottalstop2080 3 года назад
halfing
@wizwildworld2407
@wizwildworld2407 3 года назад
1D is a line.
@davypeterbraun
@davypeterbraun 2 года назад
Love him
@PolyRocketMatt
@PolyRocketMatt 6 лет назад
Very helpful!!!
@jeremyholden9159
@jeremyholden9159 3 года назад
ken Perlin revolutionized video games from his work on tron the movie. but did little to change tron the video game.
@simantakdabhade4770
@simantakdabhade4770 8 лет назад
is it is a more gradual random ?
@TheCodingTrain
@TheCodingTrain 8 лет назад
I would say a more "smooth" random.
@jankopp6005
@jankopp6005 8 лет назад
you rock
@TheCodingTrain
@TheCodingTrain 8 лет назад
thank you!
@nirajgaonkar7669
@nirajgaonkar7669 7 лет назад
your face at 1:00 ur funny
@clairek5894
@clairek5894 2 года назад
09:20 Dan coins the term "halving", which crypto analysts borrow in "bitcoin halving"
@cap-advaith
@cap-advaith 5 лет назад
1234321234545676567............omg u are great at explaning things!!!!!
@alexsindre2426
@alexsindre2426 5 лет назад
a tab on video on 0:03 is not clickable
@runfunmc64
@runfunmc64 7 лет назад
Wouldn't you be able to pick random number since you're a human being?
@joshuathomas5062
@joshuathomas5062 7 лет назад
Parker Sorenson that's a philosophical question. Some would say so, other would say that human thinking is deterministic in nature
@erispe
@erispe 3 года назад
2 or 3 short videos... *looks at 14 video playlist in sidebar* Alright cool let's gooo!
@Botpointo
@Botpointo 4 года назад
*only 2 or 3 short videos*
@BlueyMcPhluey
@BlueyMcPhluey 3 года назад
9:22 "I'm halving that amplitude. I'm having it? I'm having it for lunch! -- I'm dividing it by half! Whatever!" x/(1/2) = 2x so... you're doubling it? 😂
@finbob08
@finbob08 8 лет назад
ahahahah I like how you graphed "random" it followed a very distinguishable pattern
@lucae6931
@lucae6931 7 лет назад
finbob08 he said it himself
@statsnack
@statsnack 6 лет назад
You are too cool!
@0_-
@0_- 4 года назад
random.uniform(past - 0.25, past + 0.25)
@NoSuchStrings
@NoSuchStrings 7 месяцев назад
Me gusta
@WhoWantsToKnow81
@WhoWantsToKnow81 Год назад
9:28 "I'm dividing it by half." So you're multiplying it by two, then? 😁
@aryamankejriwal5959
@aryamankejriwal5959 5 лет назад
9:29 hate to point it out but you’re not dividing by half, you’re multiplying by half or dividing by 2...🤪
@TheCodingTrain
@TheCodingTrain 5 лет назад
doh