Skip to main content

CG Homework 4, due Thu 2019-10-03 2359

Homework 4, due Thu 2019-10-03 2359

Modify the triangle or cad program as follows:

  1. The user can draw triangles by clicking on 3 vertices. Don't use fans or strips, just simple triangles.
  2. Have 3 sliders to set the depths of the 3 vertices. Thus the triangles can be slanted in distance.
  3. Have 3 menus to set the colors of the 3 vertices. Interpolate the colors inside the triangles.
  4. Give each triangle a random velocity and angular momentum.
  5. If a triangle hits the border, have it bounce off.
  6. Now have fun creating a demo scene where the triangles move and cut through each other.

(Total: 50 points.)