Computer Science 112
The Art & Science of Computer Graphics
Spring 2016, The College of Saint Rose
Agenda
Due at the start of class, Wednesday, February 3.
Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT strose.edu by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 112 Lecture 4 Assignment , Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.
It is important to be able to describe the exact sizes and positions of objects we add to our models. For example, the statement
scene.add(sphere, scale(.5,.5,.5)*translate(0,50,0), bluePlaster)
will add a sphere made of blue plaster material which has dimensions 50 ×50 ×50 with its center at (0, 50, 0). It occupies space from -25 to 25 in x, 25 to 75 in y, and -25 to 25 in z.
Describe, in terms similar to the above, the size and location of each of the cubes added with the following Python/Ambrosia statements (6 points):
scene.add(cube, translate(100,0,0)*scale(2,2,2), redPlaster) scene.add(cube, scale(2,2,2)*translate(100,0,0), bluePlaster)
Terminology
Examples