Final Project Milestone

CS184, Spring 2020
Daniel Geng and Nico Deshler

Video Update


Progress Overview

We have made steady progress in creating both a spherical fluid simulator and a spectral ray tracer. Moreover, we have successfully established a pipeline for interfacing both of these elements, bringing us closer to a physics-based bubble simulation. So far we have adapted our planar fluid simulator to project properly on the sphere by wrapping the fluid over the edges of the fluid grid. We have also created a specialized BSDF in the project 3 pathtracer codebase for computing and visualizing thin film interferce (TFI) effects. Initially our thin film interference depicts We attempted to also build a physically accurate fluid simulator that uses the Navier-Stokes equations posed in spherical coordinates. While there are papers detailing implementations of such simulators, we have encountered instabilities arrising from the fact that the velocity vector fields are not defined at the poles. Thus for purposes of our initial bubble visualization, we stick to using the planar fluid simulator as a spherical texture map that describes the thickness of the thin film at each point on a spherical surface.

Spherical Fluid Simulator

Projective Simulator

Planar fluid simulator projected onto the sphere


Physically-Accurate Simulator

Fluid simulator with Navier-Stokes equations formulated in spherical coordinates


Thin Film BSDF

The spectral ray tracing capability developed herein relies on a thin-film BSDF subclass that we have implemented for our project. Upon ray intersection with a thin film object, this BSDF queries the thickness of the bubble at the intersection point from a thickness map computed by the fluid simulator. After conducting bilinear interpolation over the nearest tabulated thickness values, the methods in this subclass compute the effects of thin-film interference and supply proper weights to each RGB channel in the backtraced ray. Additionally, to assign this specialized BSDF to objects in the scene we modified the COLLADA parser to handle creating instances of this subclass using the supplied thin film data.

Interference Calculation Pipeline

Physics-based TFI:

Physics-based TFI example 1
Physics-based TFI example 2
Pseudo-Physical TFI:
Pseudo-physical TFI example 1
Pseudo-physical TFI example 2

Interfacing Fluid Simulator with Spectral Ray Tracer

Next Steps

  1. Address energy loss issues apparent in pseudo-physical thin film interference approach.
  2. Address instabilities and noise in our physically-accurate spherical fluid simulator.