James Bigler: CS6650 Homework 4




Create a motion-blurred image of a moving sphere.
To do this, use any form of ray tracing. For example, for points (x,y) on the screen you could use rays

p(t) = (x,y,0) + s(0,0,1)

and a moving sphere:

center(time) = p0 + ((time-time0)/(time1-time0))(p1-p0)

You can fire rays through each pixel with jittered 1D times between topen and tclose. The color of the sphere can be a constant, i.e., no lighting is required.



Here are some examples illustrating some motion blur. All images were created with 1024 samples per pixel using a jitter sampling



Example 1

All spheres are moving.
Red is moving horizontally
White is moving vertically
Blue is moving away
Yello is moving closer and to the lower right

Example 2

Only the yellow sphere has movement


// this is sample code