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