Computer Graphics
Dr. Gerda Kamberova
-
- Assignment 1.
Modify the hello.cpp program to display a triangle with two vertices the bottom two vertices of the square, and with a third vertex the middle of the top side of the square. Due Sept 17 in class.
- Assignment 2. DUE 9/24.
Modify the Serpinski gasket program so that it
generates a perturbed figure.
You can use either one of the solutions given in the textbook as a base (the iterative one or the recursive one). The idea is each time you generate a point, to perturb its coordinates with some random amounts (chosen at a proper scale). You decide how to choose the rough scale for the perturbations and how actually to do the perturbation. You should keep the figure close enough to the original, so it is recognizable, and yet it should appear randomly perturbed (avoid uniform shape changes, like pushing it only to one side).
- Fill free to add new features, anything you think can make the figure or its display more interesting and fun.
- SUBMIT:
- The hard copy of the program in class (DOCUMENT YOUR CODE!) and the electronic version on Black Board (I will activate the Black Board for that)
- A brief report stating what problem was and how you solved it, mainly what was your approach (what was the idea you used to do the perturbation and keep the figure still in relative shape), give proper credit when credit is due. In the report mention any bugs you know about or any interesting feature you added. The report is important: you have to learn to present your work clearly and concisely in a correct and useful report that highlights the good features but also states the limitations or bugs.
- GRADING: The assignments will be graded on correctness (does it do what it is supposed to), style (is the program well organized and documents, is the report useful and readable), creativity (anything above the minimum requirements is bonus points).