Project 2 Errata

CS 248 - Introduction to Computer Graphics
Autumn Quarter, 2001
Instructor: Marc Levoy


  1. (Posted Oct 24) Remove the vertices field from the AnimObject struct in objects.h
  2. (Posted Oct 24) Change the following in animgui.cpp.
               from:
                  glOrtho(0, WINDOW_WIDTH, -WINDOW_HEIGHT, 0, -1, 1);
               to:
                  glOrtho(0, WINDOW_WIDTH-1, 1-WINDOW_HEIGHT, 0, -1, 1);
             
  3. (Posted Oct 25) Retraction of #2. If you never made the change in the first place, then just leave it alone; the original was correct. If you did change it, then change it back, as follows.
               from:
                  glOrtho(0, WINDOW_WIDTH-1, 1-WINDOW_HEIGHT, 0, -1, 1); 
               to:
                  glOrtho(0, WINDOW_WIDTH, -WINDOW_HEIGHT, 0, -1, 1);
            
  4. (Posted Oct 26) In animgui.cpp change the following for the second loop in the LoadObjects function.
               from:
                  for (j=0; j<objects[i]->numVertices; j++)
               to:
                  for (j=0; j<objects[i]->numKeyframes; j++)
            

levoy@cs.stanford.edu
Copyright © 2001 Marc Levoy
Last update: October 26, 2001 04:34:10 PM