W Randolph Franklin home page
... (old version)
ComputerGraphicsFall2010/ home page Login

Computer Graphics Fall 2010 group home

Homework 8, Due by email to Peter Honig on Nov 29.

Consider the data file in chippchair.dat, modified from http://www-inst.cs.berkeley.edu/~cs184/fa09/resources/meshes/chippchair-fixed.obj It defines a chippendale chair.

  1. The first 1727 lines each define one vertex.
  2. The remaining 3438 lines each gives the vertices for one triangle, counting from 1.
  3. plotchair.cc is a simple program to plot it:

    Chippendale chair
  4. However the program is inefficient.
  5. This homework is to rewrite the program to use one call to glDrawElements plus whatever you need to set up its arguments.