CIT: Color-Interpolated Triangles


Example file applets: cit-cow.html | cit-teapot.html | cit-hexcone.html | cit-test.html

Instructions

The applet first displays the reference image. After pressing the first mouse button, the applet will render the triangle list using your triangle rasterizer and display it. One more mouse click will cause a difference image to be displayed blue pixels represent small errors, red pixel indicate large errors, and the hues of the spectrum indicate errors in between). Several statistics are provided along with the difference image, including the number of pixels that did not exactly match those in the reference rendering, the average deviation of an errant pixel, and how long the rendering took. Additional mouse clicks cause the process to repeat. The applet displaying test.tri (my example) displays only rasterized image (no reference image).

Source

Requirements satisfied

  • It uses an edge-walking approach.
  • It interpolates the vertex colors inside of the triangle.
  • My Triangle method renders into a Raster object.
  • This project page includes applets for each example file provided as well at one triangle file of my own design (test.tri).
  • Nearly "perfect" triangle drawing. (small error %'s).

Optional stuff sure to impress

  • Incredibly fast! (~270ms) -> Good implementation.
  • Uses plane equations to interpolate the colors (see PlaneEqn.java).

Issues

  • Should work for Suns.
  • Doesn't seem to work on the SGI's.


Ted Weatherly / MIT / tweather@mit.edu