A Procedurally Generated City

By Mark McKinney

Project Description

For my CPE 471 final project, I decided to create a procedurally generated city which the user drives through. It is a grid with rows of buildings which have random heights and lengths. The user can drive through the city with different camera modes and cannot drive through any buildings thanks to collision detection. When it initially starts, there is a fly-in camera for an establishing shot of the city, and then the user is free to drive wherever they'd like.


Project Implementation

The implementation of the project focused on three main aspects: managing user input, procedurally generating the city, and collision detection.


Project Screenshots

Camera fly-in

Initial view after the fly-in

Free camera

Modified camera distance

One randomly generated city

Another randomly generated city

Building collision detection

Bunny collision detection