Skip to content

onlyname1/hw03-advanced-raymarching

 
 

Repository files navigation

Leaning Tower of Pisa - SDF Recreation

By An Duong

Pennkey: onlyname

Overview

  • Leaning Tower of Pisa Recreation

* **Inspiration**

Live Demo

Implementation

The Tower of Pisa was recreated using a fragment shader that rendered the scene through raymarched signed distance functions. The scene also includes Blinn-Phong specular reflection, soft shadows implemented via raymarched shadow feeler rays, as well as basic materials. The scene includes a main light to cast shadows, a fill light to add color, and an ambient light to add color variation. Basic fog was added to emulate a horizon. The tower is made up of the smooth blend and union of SDF cylinders. The floors of the tower were created using the repetition of a singular floor through the SDF limited modullo function. The tower leans over time via a sine function. The crowds of people were also created by repeating an SDF cylinder over an area. The crowds jump up and down by offsetting their position with a triangle wave function dependent on time and a specific person's position.

Citations

SDF Functions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • GLSL 49.9%
  • TypeScript 46.8%
  • JavaScript 3.3%