CS 248: Introduction to Computer Graphics

Pat Hanrahan


Assignment 1 Solutions

Sample solutions to assignment 1, including source code (available on 2/14/96), are available in the class directory
/usr/class/cs248/assignments/assignment1
on the Sweet Hall cluster. The following sample programs are available:
Space War (spacewar)
Written by Homan Igehy. A simple program satisfying the requirements of the assignment.
Asteroids (asteroids_andrew)
Written by Andrew Beers. A simple program satisfying the requirements of the assignment.
OpenGL Asteroids (asteroids_toli)
Written by Apostolos "Toli" Lerios. The guide to the over-achiever. It incorporates pixel-accurate collision detection, texture mapping, pixel-accurate wrap-around, audio feedback, signal handling, text file parsing, and much more. More information is available from the public distribution of OpenGL Asteroids; contrary to what is stated in that document, CS 248 students may freely contact the author during office hours (in person, or by phone, but not by email) with questions on the source code.

hanrahan@cs.stanford.edu

Copyright © 1996 Pat Hanrahan