Final Project – Motion Blur

CSS 522, Winter 2011

 

Problem:

Using Ray Tracers, add motion blur to objects in a 3D scene.

 

Implementation:

Geometries has motion blur attributes

·         motion direction vector

·         motion time

<sphere>

      <center> -2 1.5 0.5 </center>

      <radius> 0.4 </radius>

      <material> 2 </material>

      <motiondirection> 3 -1 0 </motiondirection>

      <motiontime> 20 </motiontime>

</sphere>

 

Each pixel, draw the geometries with motion velocity at regular intervals along its motion vector.  Using the Ray, check to see if the ray intersects with any of the objects and their motion trail shadow.  If the Ray intersects the object in the motion trail shadow, shade the pixel.  Shading of the pixel is a linear gradient between background and the object color. 

 

The motion blur shown, displays some strobing effect with less samples of the object in the motion blur trail.  More sampling diminish the smoothes out the strobing effect.  It does show ambient and specular light.  We did not implement shadow and reflections.