Coding Challenge #24: Perlin Noise Flow Field

Описание к видео Coding Challenge #24: Perlin Noise Flow Field

In this coding challenge, I use Perlin noise to create a two-dimensional flow field with the p5.js library. Code: https://thecodingtrain.com/challenges...

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

🎥 Previous video:    • Coding Challenge #23: 2D Supershapes  
🎥 Next video:    • Coding Challenge #25: Spherical Geometry  
🎥 All videos:    • Coding Challenges  

References:
🗄 p5.js noise() reference: https://p5js.org/reference/#/p5/noise

Videos:
🔴 Livestream Archive:    • Live Stream #46: Perlin Noise and Flo...  
🎥 My videos about Perlin Noise:    • 13: What is Perlin Noise?  

Related Coding Challenges:
🚂 #11 3D Terrain Generation with Perlin Noise in Processing:    • Coding Challenge 11: 3D Terrain Gener...  
🚂 #132 Fluid Simulation:    • Coding Challenge #132: Fluid Simulation  
🚂 #C4 - Coding in the Cabana Worley Noise:    • Coding Worley Noise  

Timestamps:
0:00 Introduction
0:35 Two dimensional Perlin noise
2:02 Scale
5:08 Create a vector
5:45 Draw vector as a line
7:09 Random angle
8:10 Flow field
9:24 N-dimensional Perlin noise
9:53 Add zoff
11:56 Add Particle class
15:26 Add particles
16:26 Add edges()
17:34 Have particles be affected by vectors
18:34 Flowfield array
21:00 Follow()
22:56 Set magnitude of vectors
26:42 Add alpha
27:36 Store particle's previous position
27:56 Draw line between current and previous position

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord:   / discord  
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#perlinnoise #arrays #p5js

Комментарии

Информация по комментариям в разработке