CS 351: Assignment #5

Transformations and Viewing

Due 16 October, 2014

In this assignment you'll implement a library of 2-D and 3-D transformations and then make use of them to build an object and a simple imaging pipeline.


Tasks

  1. The first part of the assignment is to build a matrix library as outlined in the system specification The matrix library is a set of 2-D and 3-D matrix and vector functions. There are lots of functions, but most are fairly simple.

    To test the non-view parts of your library, you can run the test5a.c test file. To help you debug, here is a listing of the output of the program when it is run with the command test5a 30 -60. (Note, with this command there is a component of the image that goes outside of the image, so you must catch that, somehow.)

    You can also use this code to run a more thorough test on almost all of your matrix and vector functions.

  2. The second part of the assignment is to create a 2D view matrix function and demonstrate that it works using the test function test5b.c, with output test5b.txt.

  3. The third task is to create a 3D view matrix function and demonstrate it works using the test function test5c.c. The output of the program is here for a command line argument of 0.0 and here for a command line argument of 1.0.

  4. Make a 2D scene of your own. It does not need to be complex. Make a sequence of at least 10 images where your view both pans and zooms (in or out) across the scene. Create an animated gif from your scene.
  5. Make a 3D scene of your own. It does not need to be complex. Make a sequence of at least 10 images where your view moves relative to the scene. You do not need to adjust any parameters except the VRP (location) and VPN (orientation) of the view. Create an animated gif from your scene.

Extensions


Writeup

Make a child wiki page from your main CS 351 wiki page. Give it the label cs351f14project5. Put up your required and portfolio images along with brief descriptions and relevant information. Make your page nice to read.


Handin

Put your code (sans .o files, executables, or images) in the Private handin folder on the server.