Bath Room - 許乃晟
Two extra shots
Abstract

This is a project to learn some shaders and simulate the water. To combine all things together, I decide to create a scene at a bathroom with two rubber ducks in the bathtub. I hope that you can feel you are just a child, so you can get some feelings about happiness and tranquility.

Authors
許乃晟
Abstract

This is a project to learn some shaders and simulate the water. To combine all things together, I decide to create a scene at a bathroom with two rubber ducks in the bathtub. I hope that you can feel you are just a child, so you can get some feelings about happiness and tranquility.

Technical introduction
  1. Water : Using cg shaders
  • Vertex shader : compute the height of each points (blending two sin functions to generate new special wave function) per time unit.
  • Fragment shader : get the reflection and refraction textures which generated at run time and blending the colors (also according the noise map).
  1. Sky Mapping : Just a plane use the current texture of skybox and some noises on it.
  2. Caustics : A series of caustics textures which can change one after another just like an animation.
  3. Floating : Write another wave function with different rate relative to the water to move the rubber duck. By doing this way, we can make too freak floating effect.
  4. Cube Mapping : Using a dynamic texture which is generated from six directions images captured by a camera at run time.
  5. Mirror : Using a dynamic texture which is generated from one direction image captured by a camera at run time.
Video