Procedural Background Building

This blueprint is extremely useful for optimization. It is very easy to create simple buildings with different styles and dimensions. These buildings could be used for backgrounds, where the player cannot reach.

The creation of the model is completely procedural, it is generated in the blueprint, without using any external model.

How to create a procedural building

Drag and drop the blueprint in the scene:

How to edit the shape of the building

Select the “Spline” from the components:

Select the spline’s points:

Move the points and the building will update in real-time:

How to add a linear point

If you want to add a new point, you can select a point, hold ALT and move the point to a new position:

Make sure that the point is linear:

After adding 2 more points:

How to make a curve section of the building

Select 2 points in a row and change the type of points from linear to Curve:

Change the direction of tangents:

Shape of building

“Shape Type” can be “Custom Spline”, “Rectangle” and “Circle”

For Rectangular Type, you can control the dimensions of the building using “Dimension 1” and “Dimension 2” parameters.

For the Circle Type, the “Dimension 1” is equal to the radius of the circle.

The “Length Curve Segment” determines the segments’ length of a curve section. (Only for “Custom Spline” type).

“Circle Segmentation” is equal to the number of segments of the circle.

Sections Floors/Ground Floor

Each building can have a “Section Ground Floor” Structure and an array of “Sections Floors” Structures.

Section Ground Floor

Ground Floor On

“Ground Floor On” if true, the building has a ground floor.

Ground Floor Type

Each ground floor type has its own height. Example of different ground floor types:

Ground Floor Variation

Example of different ground floor variations:

Section Floors

Each Floor Section has a “Number Floors”, “Facade Type”, “Facade Variation”, “Border” Structure, and “Offsets” Structure.

Number Floors

The “Number Floors” parameter will determine the number of floors for each section generated of the building.

Facade Variation

Border Structure

“Border On” if true, that section of the building has a border.

Border Type

Border variations

Offset Structure

Using these parameters you can stretch the texture (tweaking UV).

Example Lateral Offset UV:

Example Height Offset UV:

The offsets can be applied automatically using the presets for each section’s type.

Roof Section

There are 2 parameters for roof dimensions and 2 for materials.

Roof Type Material

Roof Border Type Material variation

Border Roof Height and Border Roof Width

Presets Section

If you press the “Apply Presets Button”, the presets parameters will be applied to the building (the offsets and border parameters).

If you check the “Only One Type Presets” and the building has multiple sections, the facade type of the sections will be the same as the first one.

Random Parameters

To change the style of the building randomly, you can use the "Random button" after you check the options:

Snap Section

Overwrite Section

You can overwrite all the materials from a building.

For each material from “Facade Material” or “Ground Floor Material”, you should set the “X Windows” equal to how many windows have the material horizontally.

Limitations:

The building should have no more than 2 “Curve” points in a row

Last updated