Capitalist City – Terrain Generation
Sam
June 20, 2023
Terrain Generation
In City Skylines the maps are already pre built and that can be nice but I opted for procedural Terrain Instead. To do that I used perlin noise that some people say are great to procedurally generate terrain and others don’t. So after some programming I came up with a working system. I decided to make it look like a voxel even though it isn’t 100% voxel. But after this it all looked to similar so I added in some colors to make it look better. Lastly i added in flowers as well on the ground to get an extra pop.
Water
The water was another intresting part but I manged to solve it pretty quickly. I used a tutorial i found on making water foam on collisions. It really dosent work with collisions but it dosent matter really. Made it move up and down and it works great.
Resource Generation
The resources I decided on using for now are oil, ores and trees. Trees are extra important because they give life to the environment. Making some tree prefabs and some code it worked well except the frame rate dropped from around 400 to 30. But reducing the number of draw calls I have made it up to 400 again. But when the game releases I am probably going to lock the framerate at 60.