Discuss Project #4
Rule Changes:
- Project is due midnight Monday (11/20/00)
- You are required only to implement an ambient and a directional light source
- Parser for input files:
- Comments - # the rest of the line after a pound sign is ignored
- Eye Position - eye x y z
- Look-at Position - look x y z
- World-space up vector - up x y z
- Horizontal field-of-view - fov angle_in_degrees
- Ambient Light Source - la r g b # color intensities range from 0 to 1
- Directional Light Source - ld r g b x y z # x y z is a vector from the light to the surface
- Polygon Vertex - v x y z
- Polygon Facet - f i1 i2 i3 i4 ... in # index to vertex 0-based
- Surface Parameters - surf r g b ka kd ks nshiney
|