This project demonstrates procedural generation of 3D building geometries using WebGL. The height and size of the buildings are determined by the pixel values of an input PNG image, allowing for a visual representation of data-driven urban landscapes.
This project focuses on generating 3D building geometries based on an input PNG image, where each pixel's color determines the building's height. The procedural generation process involves the following key steps:
The project also includes optional functionality for shadow mapping, allowing for more dynamic lighting effects. This feature can be implemented by porting the shadow map functionalities from previous assignments.
To see the project in action, download one of the example PNG images like example-1.png. Upload this file using the control panel on the project page to visualize the procedural geometries.
In the demonstration, you can interact with the 3D model using your mouse:
Special thanks to the following resources: