CSE 30 -- Prog 1

Due: 11:59pm Sunday, April 26, 2020 (pacific time).
Late submissions will not be accepted/graded.

Learning Objectives:

Use existing class (turtle and numpy) and practice on recursion.

Description:

Write a python code that will generate a fractal terrain, render it as a wireframe, and create an animation. Place your code in a file named "terrain.py", and submit on Canvas. The primary input for the terrain will be a triangle which defines the perimeter of the terrain. This triangle can be hardcoded. You will also need to specify the recursive depth, and another parameter which describes the roughness of the terrain. These 2 parameters may be hardcoded as well. The method to use for generating the fractal terrain should be the midpoint displacement method. Your output should look similar to: this wiki animation. Note that while this animation shows how a terrain varies at different recursive depth. Its viewpoint is fixed. In your animatiion, the recursive depth is fixed, while the viewpoint is animated. That is, you will be looking at your terrain from different viewpoints.

Suggested Steps:

Resources:

There's a set of
links on turtle to get you started with graphics.

Wiki description of numpy.
Link to source.
And the numpy homepage which also has a tutorial.
Another tutorial setup on colab/jupyter.

Rubric:

10	2D triangles, top down view
10	3D triangles, top down view
40	recursive subdivision vs interative subdivision
20	3D alternate view
20	3D animated view
10	extra: user interface e.g. using mouse for interactive viewpoints
-5	holes or tears in terrain

Alternative Suggested Steps - based on rubrics:

Who graded your assignment based on your LAST name:

 
Andre Navid Assadi	: A  - Ch
Kyle Nagao Oda		: Co - I
Mark Allamanno		: J  - M
Michelle Kwong		: N  - Sh
Singaravelavan Rajesh	: Si - Z

Submission:

Submission must be done using Canvas under Prog1 as a Python file named "terrain.py".

Last modified Monday, 27-Apr-2020 00:57:04 PDT.