Computer Science 112
The Art & Science of Computer Graphics

Spring 2016, The College of Saint Rose

Lecture 8: Custom Objects
Date: Monday, February 15, 2016


Utah Teapot at the St. Louis Science Center, July 2012.

Agenda

Lecture 8 Assignment

Due at the start of class, Wednesday, February 17.

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 8 Assignment, Mary Smith). We will discuss these questions at the start of class, so no late submissions are accepted.

  1. (6 points) As a start to review for the first exam (still about a month away), draw the view from the standard camera position of the objects below on these axes. Each "graph paper" square represents a 25 ×25 region of space.
    scene.add(cube, scale(.5)*translate(100,0,0), yellowPlaster)
    scene.add(cube, translate(100,0,0)*scale(.5), cyanPlaster)
    

    Note: a printable PDF copy of the blank axes is here.

  2. For a bit more practice with constructive solid geometry, create a three-dimensional Pac Man object, with his mouth open. You need not run this in Python/Ambrosia or generate an image, but you may do so if you wish. (6 points):
  3. Write (or type) out an Ambrosia definition for the same roof object as the in-class exercise, but this time constructed as a Mesh object. (8 points)

Terminology

Examples

Links