
Assignment 3
CSCI-4965: Three-Dimensional Computer Graphics
Due: Thursday, November 9, 2000, 10:00am
1 Overview
This assignment focuses on texture mapping and image processing. You are to write a program
to manipulate and create images, texture map them onto objects, and then animate the texture
mapped objects. You will be provided with sample images, and code to read these images. For
additional information and updates on the assignment, please see the assignment web page at
www.cs.rpi.edu/courses/fall00/graphics/assign3.html.
2 The Texture Mapping Task
You are to write an OpenGL program to map textures created from images onto objects, and
animate the objects. Your assignment consists of the following tasks:
1. You are to read in one or more image files and manipulate them using image transforma-
tions. See the assignment web page for sample images in BMP format and code to read them.
You can also scan in your own images for this assignment.
2. Describe the image transformation function(s) you use in your README file. Here are three
example image transformations you can use. Let the origin of an image be its center, and let
the position of each pixel be described by its distance
from the origin and its angle
with
respect to the horizontal. Let
be the maximum inscribed radius of the image. Then:
"!
#
where
#
is a scale factor you select,
$%'&
#
&($%%
.
You can also create procedural textures (e.g., checkerboard) for mapping. Describe how you
created these textures in the README file.
3. Create a scene with two or more objects and texture map them using the set of original and
new image textures you created. You can use the drawing functions provided by GLU and
GLUT to create objects such as the cube, teapot, cylinder, sphere, torus, and NURBS surfaces.
You may also use the mipmapping capability of OpenGL. Let the default projection mode
be perspective projection.
4. Animate one or more of the texture mapped objects in the scene.
1