Procedural Mesh Generation with Code in Godot
How to procedurally create meshes for a staircase in Godot. Procedural mesh generation has many broad applications, however, for now I’ll focus on just creating a staircase.
This video is what happens if I allow a 30 second tangent to grow into its own topic.
This entire project is open source and can be accessed on GitHub here - https://github.com/nicholas-maltbie/Godot-OpenKCC
You can look at the documentation for a text-based overview of this video topic - https://openkcc.nickmaltbie.co....m/docs/design/stairs
Chapters:
00:00 Intro
01:21 Define the Problem
02:20 Which Solution to Use?
03:55 Procedural Mesh Generation
06:59 Problem of Back-face Culling
09:30 Procedural Stair Generation
11:46 Show Off the Work
13:54 Collider Shapes
15:09 Equivalent in Unity Game Engine
15:45 Now to Stair Movement
16:30 Outro
Sources:
[1] Human Fall Flat - No Brakes Games. https://nobrakesgames.com/games/human-fall-flat/
[2] Palworld - Pocketpair. https://www.pocketpair.jp/palworld
[3] Back Face Culling Skull Example - Claudio Rocchini. https://commons.wikimedia.org/....wiki/File:Back_face_
[4] Triplanar Mapping – Ronja’s tutorials. https://www.ronja-tutorials.co....m/post/010-triplanar
[5] Minecraft – Mojang Studios. https://www.minecraft.net/