In this coding challenge, I create a 3D procedural terrain using Perlin Noise and the beginShape() function in Processing. Code: [ Ссылка ]
🕹️ p5.js Web Editor Sketch: [ Ссылка ]
🎥 Previous video: [ Ссылка ]
🎥 Next video: [ Ссылка ]
🎥 All videos: [ Ссылка ]
References:
💾 beginShape() reference: [ Ссылка ]
💾 noise() reference: [ Ссылка ]
Videos:
🚂 What is Perlin Noise?: [ Ссылка ]
🔴 Coding Train Live 37: [ Ссылка ]
Related Coding Challenges:
🚂 #18 3D Fractal Trees: [ Ссылка ]
🚂 #24 Perlin Noise Flow Field: [ Ссылка ]
🚂 #112 3D Rendering with Rotation and Projection: [ Ссылка ]
Timestamps:
00:00 Introduction to the Challenge
00:46 What do we need to do?
02:14 Draw a rectangular grid!
04:13 Create a flat triangle strip mesh!
06:51 Rotate the surface in 3D!
08:47 Set the z-values of the vertices randomly!
11:04 Create a 2D array to store the z values!
13:31 How do we make the terrain infinite? What is Perlin Noise?
17:03 How do we make the terrain smooth?
17:43 Reduce offsets to get smoother z values
19:17 How do we make it appear as if we are moving over the terrain?
20:30 Change y-offset per frame to create the illusion of flying!
22:05 Thanks for watching!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: [ Ссылка ]
👾 Share Your Creation! [ Ссылка ]
🚩 Suggest Topics: [ Ссылка ]
💡 GitHub: [ Ссылка ]
💬 Discord: [ Ссылка ]
💖 Membership: [ Ссылка ]
🛒 Store: [ Ссылка ]
🖋️ Twitter: [ Ссылка ]
📸 Instagram: [ Ссылка ]
🎥 Coding Challenges: [ Ссылка ]
🎥 Intro to Programming: [ Ссылка ]
🔗 p5.js: [ Ссылка ]
🔗 p5.js Web Editor: [ Ссылка ]
🔗 Processing: [ Ссылка ]
📄 Code of Conduct: [ Ссылка ]
This description was auto-generated. If you see a problem, please open an issue: [ Ссылка ]
#perlinnoise #terraingeneration #procedural #processing
![](https://i.ytimg.com/vi/IKB1hWWedMk/maxresdefault.jpg)