Assignment (4) – Graphics
Due Feb. 20, 2009
You are required to write three OpenGL programs for the Problem (2.6) at the end of Chapter (2). But you need to do something a bit different, see the description of the three parts below. We will go through some of the things that you may need in order to be able to write your program. Your program will produce different shapes for different number of iterations. I go up to five iterations in my testing.
You are required to send as an e-mail attachment one program (.ccp file) for each part. Make sure your name is at the top of your program. At the subject line, indicate which part you are submitting with the e-mail. Your program has to work with up to 5 iterations correctly. Here is a document containing information and process of making snow-flakes. Click here to open it.
Part (A) - 40 points
Your program should produce a snow-flake and allow users to run it with different number of iterations by changing the iteration number inside the program. The image below was generated after 5 iterations.
Part (B) - 60 points
Your program should produce two snow-flakes as shown below. The image below was generated after 5 iterations.
Part (C) - 100 points
Your program should produce a snow flakes at the center and 6 snow flakes around it. Basically add 5 more in the above figure to sit on the free corners.