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:
- The user can draw triangles by clicking on 3 vertices. Don't use fans or strips, just simple triangles.
- Have 3 sliders to set the depths of the 3 vertices. Thus the triangles can be slanted in distance.
- Have 3 menus to set the colors of the 3 vertices. Interpolate the colors inside the triangles.
- Give each triangle a random velocity and angular momentum.
- If a triangle hits the border, have it bounce off.
- Now have fun creating a demo scene where the triangles move and cut through each other.
(Total: 50 points.)