I am providing these so that nobody's performance on this assignment needs to be affected by their performance on earlier assignments. It is my hope, however, that most of you will want to be able to say at the end of the class that YOU wrote the code in your renderer from start to finish, instead of borrowing from my versions. Use these only if you decide that your own versions are not suitable to use. We will use the performance of your program on these scenes to grade your assignment. In the routines that we provide, the matrices may be indexed in a way that you do not anticipate.
Many people expect the row index to come first.
This is how we will describe a scene, by placing a list of CLI commands into a file and then read this file into our rendering program. Recommended Approach First, get your polylib.c and matlib.c files to compile together into the same code along with render.c. Next, add the z-buffer and z interpolation during scan conversion. Then begin to incorporate the clipping routines. Finally, calculate the colors of the polygons at the vertices according to the simple shading model described above.