The following 198 words could not be found in the dictionary of 615 words (including 615 LocalSpellingWords) and are highlighted below:

about   above   accurate   actual   add   Additionally   all   All   Although   amount   an   and   answers   application   aren   asked   Assignment   assignment   assignment2   Assignment2   assume   at   base   based   basing   be   before   between   blue   box   build   call   cannot   check   class   clock   correct   correctly   course   cs148   Debugging   degrees   delay   designated   determine   dialogue   Discussion   Does   during   each   easiest   edu   elapsed   elapses   emphasis   estimate   event   events   exactness   Executable   executing   explorer   factors   fairly   following   for   frames   frequently   from   gear   gears   get   glut   got   grading   guarantees   hand   handler   hands   how   if   in   inaccurate   information   just   Just   Kayvon   keeping   least   libst   like   lists   ll   lot   make   many   means   millis   minute   much   my   need   next   Notes   number   occurs   of   on   Open   page   Page   passed   Per   please   point   points   post   probably   project   provides   put   Q1   Q2   Q3   questions   quickest   rate   reliable   Remember   response   rest   Return   right   roation   rotate   rotation   rotations   rough   run   scheduled   second   Second   select   self   Session   set   Setting   share   should   since   solution   specified   staff   stanford   start   startup   Student   studio   tells   that   The   the   their   there   these   think   This   this   tick   ticking   time   Timer   timer   to   Transform   try   units   until   ve   visible   visual   wall   want   way   we   What   when   while   Why   will   win0607   with   won   Yes   You   you   your   yourself  


Assignment 2 FAQ and Student Discussion Page

The course staff will post answers to frequently asked questions about assignment 2 here. Feel free to add to this page yourself if you've got information to share with the rest of the class. Remember, the quickest way to get a response from a TA is to post to

Return to the Assignment 2 page.

Q1: Does my second hand need to be visible above the blue gear?

Yes, please make the second and minute hands visible during all points in their roation.

Q2: What are the units of rotation in the STTransform class?

Just like OpenGL, the rotations are specified in units of degrees.

Q3: Why do I get the "libst - Executable for Debugging Session" dialogue box when I try to build and run the assignment2 solution?

You need to set the clock project as your "startup project" in the visual studio solution. The easiest way to do this is to right click the project in the solution explorer and select "set as startup project"

Notes on keeping your clock ticking at the correct rate

Although we probably won't put a lot of emphasis on this when grading assignment 2, you should think about the following to correctly get your clock to tick at an accurate rate:

You cannot assume that 1000/framesPerSecond millis occurs between the start of each timer event. This is just a rough estimate from the number of timer events you'll get in a second. Setting a timer event tells glut to not call your event handler until at least this amount of time has passed, there aren't any guarantees about the exactness of the actual delay. Additionally, there is also time that elapses while executing your code before the next timer event is scheduled. All these factors means that basing your clock's rotation based on timer events is fairly inaccurate.

What you want to do is base rotation on elapsed wall clock time since the start of your application. The STTimer class provides you the means to check how many millis have elapsed since a designated start point. This is a reliable way to determine how much you should rotate the gears between frames.