top of page
PCG Buildings: Work

PCG BUILDINGS

PCG Buildings is a random building generator which uses grammar based procedural content generation(PCG).The buildings generated are based on 3 design patterns, weights and its specified dimensions.

​

This project was done in a team of 3 over a period of 2 weeks and was inspired by a tree generation software named SpeedTree that generated natural foliage in real time for games. 

PCG Buildings: Text
diffuse04.png

DEVELOPMENT

The buildings are built on a 3D voxel system. Each tile generated along the width and length specified and would be rotated and positioned based on the direction it is facing and the cell it is in. 

​

Modifiers for the building:

  1. Weights (Doors, Windows)

  2. Number of levels

  3. Length 

  4. Width

  5. Time to generate

  6. Randomize Colours

  7. Design Pattern

​

Each level has its own center, length and width. The level will have its min and max boundaries' position calculated to generate the tiles in the correct position. 

​

​

PCG Buildings: Bio

GRAMMAR BASED PCG

To create consistent and believable structures, certain rules needed to be set.

  1. Each subsequent level must NOT be larger than the first level. 

  2. All doors not on the first floor MUST have a balcony

  3. Any cell that isn't within the upper level's boundaries will covered with roof tiles.

  4. All levels must be at least 2x2 units

buildings02.png
PCG Buildings: Bio

©2020 by Wong Wei Liat Dexter. Proudly created with Wix.com

bottom of page