Finally, you will improve your output quality by implementing bilinear interpolation to sample the texture image. Students in 275 will build a fourth generation of the scanconverter and viewer that will handle projective textures. For a textri , ' i ' is the index into the list of textures that specifies which texture will be mapped onto the textri . Because we are programmers, the first texture is number 0. Each vertex of a textri is preceded by its texture coordinates.
Texture coordinates are just like colors in that they can be linearly interpolated over a triangle.
For a regular triangle, the vertex is set to have the current color, and is dealt with just as in asst4 and asst2. Notice that each vertex is output with a fourth value, d . The scanconvert program must take as input the output of the new view program. As in asst2, it outputs a ppm file of the scan converted image. You will need to alter scanconvert so that it reads in the ppm texture images specified by the textures line its input.