EARTH 801
Computation and Visualization in the Earth Sciences

Lesson 6: Introduction

PrintPrint

Overview

This Lesson introduces one of the 3D renderers available in Processing, and we also start to see how external files (in this case image files) can be imported into Processing for use in a composition. We also learn how to save a still shot of our composition directly from our program, obviating the need to take a screen shot of it if you want to save it.

Learning Outcomes

By the end of this lesson, you should be able to:

  1. Draw a shape in three dimensions
  2. Use a 3D renderer to view a 3D shape from different perspectives
  3. Import an image file, manipulate it, and use it in a composition
  4. Export an image file

What is due for Lesson 6?

This lesson will take us one week to complete. We will finish Lesson 6 on 21 Feb 2017. The deliverables for this lesson are programming exercises, detailed on the next pages.

 
Assignment description submitted for grading?
Exercise 6.1 Draw three shapes to the screen all at once. Have each of them rotate about their own centers: one around the x axis, one around the y axis, one around the z axis submit EITHER this program OR 6.3 to the dropbox.
Exercise 6.2 Finish the fourth side of the cube from Example 6.4. Change the program to rotate the cube with the mouse. No
Exercise 6.3 Use beginShape(TRIANGLES) to draw a four-sided pyramid with mouse-controlled rotation in 3D space. submit EITHER this program OR 6.1 to the dropbox
Exercise 6.4 Export one of your programs as an app that can be run outside of the Processing environment. No
Exercise 6.5 Find/create a smallish snapshot so you can play around with it in a program. No
Exercise 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 with your programming skills. Yes - submit this.

Questions?

If you have any questions, please post them to our Questions? discussion forum (not e-mail) in Canvas. I will check that discussion forum daily to respond. While you are there, feel free to post your own responses if you, too, are able to help out a classmate.