Skip to content

onlyname1/hw02-raymarching-sdfs

 
 

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 basic Lambertian reflection, hard shadows implemented via raymarched shadow feeler rays, as well as basic materials. 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

Useful SDF Transformations

SDF Functions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.1%
  • GLSL 45.3%
  • JavaScript 3.6%