Graphics Homeworks Cloth & Fluid Simulations, Shadow Volumes in C++ and OpenGL.
![Simulated table cloth](/assets/projects/graphics/table-cloth.png)
![Stanford bunny using shadow volumes](/assets/projects/graphics/shadows.png)
Overview
These were homework assignments for Advanced Computer Graphics: hw2 - simulation (cloth and fluid simulation), hw4 - pipeline (the stencil buffer and other GPU features). Both assignments were coded in C++ using OpenGL.
My Contributions
Cloth Simulation
- Explicit Euler integration for cloth animation
- Iterative adjustment for overstretched springs
- Timestep adjustment to combat instability
Fluid Simulation
- Three-dimensional velocity interpolation
- Fluid incompressibility using divergence correction
Stencil Buffer and Shadows
- Mirror rendering using reflected geometry and the stencil buffer
- Shadow volumes using silhouette edges, shadow polygons, and the stencil buffer
- A procedural wood shader with geometrical rings and both color and normal variations (not shown)
![Denim curtain cloth simulation](/assets/projects/graphics/denim-curtain.png)
![Spiral fluid simulation](/assets/projects/graphics/fluid-spiral.png)
![Reflections using the stencil buffer](/assets/projects/graphics/reflections.png)
![Shadow volumes visualized](/assets/projects/graphics/shadow-volumes.png)
March 3, 2014.