CS 621 Contemporary Computer Graphics


Homework 2, due Feb 16, 2009 ( Mon )

  1. ( 10 points ) Find the transformed point Q, caused by rotating P = ( 3, 5, 0, 1 ) about the z-axis through an angle of 60o.

  2. ( 15 points ) Find the transformation matrix that
    1. rotates about z-axis through 45o;
    2. then scales in x direction by 1.5 and in y by -2;
    3. then translates through ( 3, 5, 0 ).
    Find the image under this transformation of the point (1, 2, 0, 1).

    Write a simple OpenGL program to check if your calculations are right.

  3. ( 25 points )
    a ) Write a program to draw the following robot arm
    b) Add features to a) so that a user can control the movements of the robot arm by entering commands from the keyboard. The movements include rotate, swing, and translation of the arm and the finger greping motions.

    c) ( Extra Credit ) Add a 3-D object ( e.g. a barn ) in the graphics and allow a user to move the arm to pick up the object.

    Make a demo of your programs to the instructor before a class or during the office hours. Then for each programming problem, just submit comments on your program, stating if it compiles and work properly, and the techniques you have used. If you have not made the demo, submit the program along with sample outputs.