CSE167 Final Project - Ray Tracing

Final Project - Water everywhere...

Student: Diem Vu

Comments

Year 2100, your house may be covered with water like this ...
The scene is created with ray tracing software and have soft shadow and anti-aliasing enhancement. For 1373 x 983 image, it took about 11 minutes to render.
Soft shadow The color of each pixel is computed 16 times, each time, the light source is randomly placed in a small square (parallel with the x-z plane) around the original position. The final color is the average of all.
Antialiasing We use 16 sub-pixels to computed the color for each pixel.
Water surface The ripple on the water surface is made by bump mapping. The height of each pixel is the sum of the height contributed by individual wave source (see below). Wave source There are 2 type of wave sources: positional and directional. For positional wave, the amplitude (or height) at any point p(u,v) on the surface is computed by:
h(u,v) = A*sin(f*|p-r|)*exp(-|p-r|*a)
where:
For directional, the height at point p(u,v) is:
h(u,v) = A*sin(f*(p-r).d)
where:

List of figures