Interests
 
Mutopia
UofU CS
Guitar Center

   Programming
 
Java
Perl
C++


Home Services About Me Downloads Projects
Assignment:
Create a web page that has the output of a program that raterizes triangles. This program will take as input a file of triangles with RGB colors defined at each vertex. The file will first have a list of vertices and then will have a list of triangles in screen coordinates (see program 2). The file will have no comments in it, so ignore the coments in this example:

cs5600 // magic header
200 100 // a 200 wide by 100 high image should be output
2.2 // the gamma value for the image
16 // 16 jittered samples per pixel-- ignore this for now
4 2 // 4 vertices and 2 triangles
2.2 4.4 0.3 1.0 0.0 0.0 // the first vertex (x,y,z) and then (r,g,b)
180.2 10.3 0.2 0.0 1.0 0.5 // second vertex, ignore z
180.2 80.3 0.2 1.0 1.0 0.5 // third vertex
10.2 90.3 0.4 1.0 0.0 0.5 // fourth vertex
0 1 2 // first triangle, first vertex is vertex 0
0 2 3 // second triangle

You should take one sample at the center of each pixel. Run this on this file

Your program should rasterize triangles in order, so overlapping triangles will have later triangles in the file "win".

My Answer:

Quick Links
Witt TV
Qwest Dex
Dictionary
Freshmeat.net
SANS Institute
CERT
Computing Dictionary
Linux Today
Eclipse
Debian
PuTTY