CG Homework 1, due Mon 2018-09-10, 9am

Hand in your solution on RPILMS. You may work in teams of 2. Each team should submit their solution under only 1 student's name, but mention both people at the top of the submission. The other student's submission should just name the lead student. (This makes it easier for us to track things and to avoid grading it twice.) As for formats, we'll take (at least) a scanned image of a neatly handwritten page, raw text, PDF, and MS Word.

  1. (4 pts) One graphics pioneer was Ivan Sutherland. Name an influential tool that he created and an influential algorithm that he helped create.

  2. (4) Consider these 3-D vectors: A=(0,4,2), B=(5,3,1), C=(8,7,9). Compute:

    1. A.(BxC)
    2. (AxB).C
  3. (4) (This is another a test of your linear algebra knowledge. Feel free to refer to books to find the correct formulae.)

    Suppose that we have a plane in 3-D thru the points A(4,2,0), B(3,2,0), and C(0,1,1).

    1. What is its equation, in the form ax+by+cz+d=0 ?
    2. Consider the line L thru the points O(0,0,0) and P(1,1,1). Where does this line intersect the plane?
  4. (4) Modify the program in http://www.cs.unm.edu/~angel/WebGL/7E/CLASS/square.html , which calls several other files, to display shapes that are the first initials of the last names of the team members.

    1. Assume that your RCSID is STUDENT. In the following, replace STUDENT with your RCSID.
    2. From an RPI windows machine, click the AFS RPI icon create a share with your RCS files.
    3. Go into public_html.
    4. Create a folder called homeworks.
    5. Copy the folder https://wrf.ecse.rpi.edu/Teaching/graphics-f2016/SEVENTH_EDITION/CODE/Common/ into homeworks.
    6. Create a subfolder homework1 under homeworks.
    7. Copy files https://wrf.ecse.rpi.edu/Teaching/graphics-f2016/SEVENTH_EDITION/CODE/CLASS/square.html and https://wrf.ecse.rpi.edu/Teaching/graphics-f2016/SEVENTH_EDITION/CODE/CLASS/square.js into that folder.
    8. Change them to answer the homework.
    9. Look at your answer by browsing to https://www.rpi.edu/~STUDENT/homeworks/homework1/square.html

    When you've solved that question:

    1. Put your answers to all the homework questions in some file, even on your own PC.

      Include listing for the files you changed for square.

      Mention the URL to access your modified square, e.g., https://www.rpi.edu/~STUDENT/homeworks/homework1/square.html

    2. Upload that file of answers to LMS.

    Lingyu will be glad to help with any problems.

  5. (2) Do exercise 1.1 from the textbook, page 37.

  6. (2) Do exercise 1.8 from the textbook, page 38.

(Total: 20 points.)