Godot 4 Procedural Generation Project
Godot 4 Procedural Generation Project
A small Godot 4 project showing how you can create procedural landscapes using noise. Download the project here or over on Github. This is a pretty simplified method of generating procedural landscapes. One of the examples is only 50 lines of code. This is a great example for beginners looking to get into proc gen.
GDExtension Update:
I turned the 3D example into a GDExtension. Sample project is included, as well as just the extension itself. The extension works by making landscape "chunks". The main node you'll use for the extension is named Proc. Proc options are:
- The row and column settings allow you to choose how many chunks are made.
- Indices distance is the distance between indices in the created mesh.
- Max height is the maximum height of the landscape
- Height exponent sets max height to the power of this value
- Detail is how the noise is scaled to the landscape
- There's an option to generate navigation on the procedural mesh as well
- Terrain material is the material to apply to the landscape
- Noise Texture allows you to set the noise that will be used for generation
*Assets used:
- Micro Fantasy by 0x72 https://0x72.itch.io/microfantasy CC0
- Overworld - Grass Biome by Beast Pixels https://beast-pixels.itch.io/overworld-tileset-grass-biome CC0
*Please get the assets from the creators if you use them in your projects, and if you do use them, maybe consider leaving them something for their efforts.
Status | Released |
Category | Tool |
Platforms | HTML5 |
Author | RancidMilk |
Made with | Godot |
Tags | 2D, 3D, Godot, Procedural Generation, project |
Code license | MIT License |
Asset license | Creative Commons Zero v1.0 Universal |
Average session | A few seconds |
Languages | English |
Inputs | Mouse |
Download
Click download now to get access to the following files:
Development log
- GDExtension for 3D GenMar 19, 2023
- Added 3D Terrain SampleMar 11, 2023
Leave a comment
Log in with itch.io to leave a comment.