Project III: Lighting, and Shading of a 3D model

Using Project two:

You will be responsible for this project in groups of two people. You must comments all your code effectively so that I can follow what you are doing in them. You may write the code in XWindows or MSWindows 95/NT.

Points:200

Due Date: March 5, 1998.


You need to implement the following classes to get your project done correctly:

class Polygon3D

class Vertex

class VertexList

class Light

class Edge

class EdgeList

Remember to implement the structure as we discussed in class. Get started on this project as soon as possible, because it is more complicated than the first two. I believe you can figure out how to implement the classes based on the class discussion. If you do have problems, do come to see me early.

Light text file:

1.0

2

0 0 0

255 255 255

0 1 1

5 2 3

0 0 255

0 1 0

Polygon Text File:

2

4

0 0 0

0 5 0

5 5 0

5 0 0

255 0 0

255 255 255

.9

.5

.2

1

4

0 0 -5

0 5 -5

5 5 -5

5 0 -5

0 0 255

128 255 255

.5

.9

.1

1