Computer Science 112
The Art & Science of Computer Graphics

Spring 2013, The College of Saint Rose

Studio/Lab 4: Marbles
Due: 11:59 PM, Tuesday, February 19, 2013


This is a very short lab exercise leading up to the first exam. This will give you some practice working with custom materials. Our goal (as a group) is to create a collection of marbles.

A Marble

Your task is to develop and submit a model of a single marble of your own design. Come up with an appropriate material (or materials) for your marble and use it to create a spherical marble with diameter 100, centered at the origin.

Please make sure your name is included both in the name of the file you use and in the object names in your model. For example, if your name is Grace Hopper, you might name your marble object (the Group, Difference, etc., that defines your marble) gHopperMarble and your model file GHopperMarble.scm. If you defined a new "shiny green" material for your marble, you might name that Material as gHopperShinyGreen. Your marble should be the only thing added to the scene, and it must be added as a single object. For example, the model described above would include something like:

(require (lib "Defs.ss" "Mead"))

(object gHopperShinyGreen Material
   (color green)
   ; add other material properies
)

(object gHopperMarble Group
   (add sphere ...)
   ; add any components you wish to your marble
)

(tell scene
   (add gHopperMarble gHopperShinyGreen))

(tell camera (shoot))

It is important that you follow these naming conventions, as I will construct a model that includes everyone's marbles.

You may submit more than one marble for inclusion in the class marble collection, but if you do, please make it clear which one you would like to be graded.

Submission

  1. Email a copy of the source code for your model (the scheme file, which should always be saved with a .scm extension) and your best image (which should always be saved in PNG format and using a .png extension) as attachments to terescoj AT strose.edu. Please include a meaningful subject line (something like "CSC 112 Studio/Lab 4 Submission"). Make sure your name is included in a comment in your model code, and that you have comments throughout the source code to make it easier to understand.
  2. Rename your best image to include your name, then upload it to the wiki. For example, if you generate an image of a fancy glass marble and your name is Grace Hopper, you might call your image "GraceHopperGlassMarble.png".
  3. Add a section to your wiki page named "Marbles" that includes a link to your image and a description of your model that generated the image.

Grading

Your submitted model and image will be graded out of 15 points. Your grade will be based on how well the model meets the requirements, documentation, and presentation on your Wiki page. Documentation (comments) in your submitted Mead model should include your name, the assignment (Studio/Lab 4: Marbles) and a brief description of the model at the top, and descriptions of sections of the model that might not be clear to someone trying to understand it. Your model code should always be nicely formatted. You can always select "Reindent All" from the "Scheme" menu in DrScheme to have the system format your code nicely. This will help with readability. Since it's so easy to do, there's no excuse for turning in poorly-formatted models.

Grading Breakdown

Marble material and/or components 10 points
Naming conventions 1 point
Model documentation and formatting 2 points
Image on wiki page 1 point
Model description on wiki page 1 point