Add point lights with color to your ray tracer.
Add surface color, shading parameters and normals to your modeling primitives (sphere and triangle mesh).
Add Phong shading to your ray tracer.
Generate an image that contains at least two spheres, two triangle meshes and one white light. It can also contain more geometry and colored lights.
One of the triangle meshes should not be a box. If you include a box, its triangles may be flat-shaded, otherwise smooth-shade your objects.
Use different values for your shading parameters for each of your objects.
Make sure that a clear specular highlight can be seen on one of your spheres and one of your triangle meshes.
Initially create a high-resolution image (at least 512x512), and then use the pixel averaging algorithm from class to create an "anti-aliased" smaller image.
Post both of your images (in TIFF or PNG format) in their native resolution (i.e. don't set their size in html) on a web site with the associated computation time.
Upload your software to WebCT.
List information about your scene, e.g. what models used and their
locations.
Also post the parameter values that you used for your geometric primitives
(surface colors, 3 k's and 1 n).
There should be at least four different sets of these.
Also include the position and color of your light(s),
E-mail the URL of the web site to david AT cs DOT drexel DOT edu before the deadline (4/24/09).
You can find SMF triangle mesh models here.
Here are two images of the bound-bunny_200.smf model.
The first is flat-shaded, where I am using a single plane normal over each triangle. The second image uses interpolated normals.
The streaks in the bunny's ears in the second image are an artifact of the low triangle resolution and interpolating the normals.
In these images I've used a right-handed coordinate system with Y up, Z to the left and X coming out of the screen.
I read in bound-bunny_200.smf without applying any transformations.
The camera location is at [2,0,0].
The camera view direction is [-1,0,0].
The camera view up vector is [0,1,0]
The horizontal camera view angle is 44 degrees.
Image resolution is [512,512]
Surface color is [1.0, 1.0, 1.0], k_d = 0.7, k_s = 0.3, specular exponent = 30, and the ambient light is [0.2, 0.2, 0.2].
Last modified on May 8, 2008.