Newbie tries making a fantasy city generator

Wow seeing some interesting stuff happening while I am out for a few days!hah

I made a bit of progress with mine last week but I started focussing on the building construction again now rather than the roads.

I grabbed the Medieval village pack and I am using the building parts from that as my initial assets. Doing everything based on size and using while loops to create the floors an exterior walls, grabbing from a datatable to randomly place the walls and floor pieces based on the size of the building. It will attempt to use the least amount of meshes possible for the floor to simplify things. EG. I have a 1x1 floor block, a 1x2, a 2x2. So if it is 4x4 in size then I can use 4 2x2 floor pieces as opposed 16 1x1 pieces. I still convert over to instanced meshes but it does the trick.

Also for my initial generation I am just using placeholders which is just a cube mesh that gets scaled to the size of the random width,depth, floors of the building. I can then tweak it’s position and rotation and change it’s variable if I want. Then when I am happy I can on the individual building spawn it’s parts, or I can use my CityGenerator controls to convert all placeholders on the map into full buildings.

With this way as well I can also spawn blueprint actors in the buildings so that I can have interactive items, movable doors etc etc. Handy for having lights placed and automatically turn on at night and whatnot.