3D Terrain Generation in Python/Pygame - Demo/Explanation
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
Other Videos By DaFluffyPotato
2021-10-18 | Python Webdev #5 - JavaScript |
2021-09-29 | I simulated 40K blades of realtime grass with Python |
2021-08-21 | How to ACTUALLY get into Gamedev |
2021-07-31 | Pygame's Performance - What You Need to Know |
2021-07-05 | Kite vs. Tabnine: An Autocomplete Software Comparison |
2021-06-17 | Pygame Performance Stress Test |
2021-06-15 | Why I'm STILL Glad I Didn't Use a Game Engine |
2021-05-25 | Python Webdev #4 - CSS |
2021-05-13 | Python Webdev #3 - HTML |
2021-04-24 | i make fast gaem |
2021-04-08 | 3D Terrain Generation in Python/Pygame - Demo/Explanation |
2021-03-16 | I Coded VTubing Software the DUMB Way |
2021-03-09 | Controller Input - Pygame Tutorial |
2021-03-03 | The Story Behind My 16 Hour Game |
2021-02-18 | hello |
2021-02-17 | I mapped my face to a cube. (python/pygame/node.js/face-api.js) |
2021-02-10 | Python Webdev #2 - Cookies and Arguments (Flask) |
2021-02-03 | Python Webdev #1 - Flask |
2021-01-26 | Learning Gamedev and Why I'm Glad I Didn't Start with Unity |
2021-01-11 | My Inexperienced Development Podcast Segment |
2021-01-01 | 2020 Pygame Projects |