23:24Coding Challenge 11: 3D Terrain Generation with Perlin Noise in Processing
From the creator
In this coding challenge, I create a 3D procedural terrain using Perlin Noise and the beginShape() function in Processing. Code: https://thecodingtrain.com/challenges/11-3d-terrain-generation-with-perlin-noise 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/OPYPc4ueq 🎥 Previous video: https://youtu.be/HyK_Q5rrcr4?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/f0lkz2gSsIk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 💾 beginShape() reference: https://processing.org/reference/beginShape_.html 💾 noise() reference: https://processing.org/reference/noise_.html Videos: 🚂 What is Perlin Noise?: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/perlin/perlin-noise-and-p5js-tutorial-intro 🔴 Coding Train Live 37: https://youtu.be/ELpZW62HGVs?t=1735s Related Coding Challenges: 🚂 #18 3D Fractal Trees: https://youtu.be/JcopTKXt8L8 🚂 #24 Perlin Noise Flow Field: https://youtu.be/BjoM9oKOAKY 🚂 #112 3D Rendering with Rotation and Projection: https://youtu.be/p4Iz0XJY-Qk 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
Published 2016-05-04 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





