3D Terrain Generation in Python/Pygame - Demo/Explanation

Subscribers:
102,000
Published on ● Video Link: https://www.youtube.com/watch?v=1p6aPS_WavY



Duration: 15:50
46,687 views
1,159


I used 2D perlin noise to generate a heightmap for 3D terrain in Python and Pygame. While in my case, I used the noise for 3D terrain, it's also applicable to top down 2D terrain, textures, etc.

Project Code:
https://dafluffypotato.com/static/scripts/3d_terrain.py

Previous World-gen Video:
https://youtu.be/1yJI8znB5aQ

All my games can be found here:
https://dafluffypotato.com/projects

Discord: https://discord.gg/9Qt2GxF

Patreon (get access to extra unreleased projects/code of mine):
https://www.patreon.com/dafluffypotato

Potato Tier Patrons:
Keill
eivl

Timestamps:
0:00 - intro and concepts
2:36 - rendering system
5:04 - terrain generation


This video and the code produced in it are released under: CC0 1.0 Universal (CC0 1.0). This puts the video and code produced in it in the public domain, so use it for whatever you want.

#python #pygame







Tags:
python
pygame
tutorial
demo
tech demo
python game
pygame game
3D terrain
perlin noise
simplex noise
programming
computer science
learn python
python noise
terrain