I'm working on a cosy town building city game that lets you build towns with winding streets.
Currently working on mesh generation for walls and buildings. I like how you can connect things in quite strange angles and it will make something that looks natural from it.
#indiegames #gamedev
Currently working on mesh generation for walls and buildings. I like how you can connect things in quite strange angles and it will make something that looks natural from it.
#indiegames #gamedev
Comments
The process is something like this:
- I start with randomly distributed points
- From that I compute a Delaunay triangulation
- Using that points are iteratively refined
Here's the terrain orientation:
To connect edges of similar angles I'm using mean value coordinates. I handle them as being straight, and then use them back to the original shape.
Still have some edge cases to hunt down, then its time to get roofs working.
Here's what it looked like when debugging: