EARTH 801
Computation and Visualization in the Earth Sciences

Lesson 6: Summary and Exercises

PrintPrint

In this lesson, you learned how to use the 3D renderer to draw shapes and simulate their movement in 3D space. You also learned how to import an image file into a program and work with it just the same as any shape you would draw.

Lesson 6 Exercises

(These are copied and pasted from the pages in Lesson 6 where they originally appeared)

6.1 Draw three shapes to the screen all at once. Have each of them rotate about their own centers: one rotates around the z axis, one rotates around the x axis, and the other rotates around the y axis.

6.2 Finish the 4th side of the cube. Change the program to rotate the cube with the mouse.

6.3 Use beginShape(TRIANGLES) to draw a four-sided pyramid with mouse-controlled rotation in 3D space.

6.4 Export an app so you or someone else can run one of your programs.

6.5 Find or create a smallish snapshot to play around with images.

6.6 Using a head shot of you or a friend, make an animated person that walks across the screen (or jumps up and down or says something with a speech bubble) by importing an image of the face and drawing the rest of the body by hand.

Turn in either 6.1 or 6.3, plus 6.6 to their dropboxes in Canvas. There is no discussion for this lesson.