Customizing Maps: Procedural Buildings


Procedural buildings

The procedural building tool allows you to create rectangular buildings composed of different levels. Each level is built using a configurable array of meshes or a single blueprint. If an array of meshes is used, each mesh will be repeated along the level at random to provide variety. The meshes are created once and each repition will be an instance of that mesh. This improves performance of your map.

Building structure

To get started on your building:

  1. In the Content Browser of the Unreal Engine editor, navigate to Content/Carla/Blueprints/LevelDesign.
  2. Drag the BP_Procedural_Building into the scene.

In the Details panel, you will see all the options available to customize your building. Every time a change is made here, the building will disappear from the scene view, as the key meshes are updated. Click on Create Building to see the new result, or enable Create automatically to avoid having to repeat this step.

The key meshes are pieces of the building's structure. They fall into four categories:

  • Base: The ground floor.
  • Body: The middle floors.
  • Top: The highest floor.
  • Roof: The roof that covers the top floor.

For each of them, except the Roof, there is a mesh to fill the center of the floor, and a Corner mesh that will be placed on the sides of the floor. The following picture represents the global structure.

bp_procedural_building_visual

Visualization of the building structure.

The Base parameters set the dimensions.

  • Num Floors: Floors of the building. Repetitions of the Body meshes.
  • Length X and Length Y: Length and breadth of the building. Repetitions of the central meshes for each side of the building.

bp_procedural_building_full

Example of BP_Procedural_Building.

Structure modifications

There are some additional options to modify the general structure of the building.

  • Disable corners: If selected, no corner meshes will be used.
  • Use full blocks: If selected, the structure of the building will use only one mesh per floor. No corners nor repetitions will appear in each floor.
  • Doors: Meshes that appear in the ground floor, right in front of the central meshes. The amount of doors and their location can be set. 0 is the initial position, 1 the next base repetition, and so on.
  • Walls: Meshes that substitute one or more sides of the building. For example, a plane mesh can be used to paint one side of the building.

bp_procedural_building_extras

On the left, a building with no cornes and one door.
On the right, a building with a wall applied to one side of the building. The wall is a texture with no fire escape.

Next steps

Continue customizing your map using the tools and guides below:

Once you have finished with the customization, you can generate the pedestrian navigation information.


If you have any questions about the process, then you can ask in the forum.