CompSci 344
Spring 2015
Computer Graphics

Lab: Introduction to OpenGL Exercises

The goal of this lab is to get you started using OpenGL. You will create a complete, animated scene. The emphasis is on understanding OpenGL's basic capabilities, as well as using them as building blocks in generating more complex effects.

Try the following problems:

  1. Change the cube geometry created in the program to be a teapot instead.
  2.  

  3. Create a second geometrical shape (cube, sphere, another teapot, etc.), in a different location from and twice the size as the first one.
  4.  

  5. Create a grid of shapes, rather than individual ones. The number of rows and columns in the grid should be the same and should be given as a parameter to the animation. All the shapes should be visible within the window (i.e., uniformly scaled to fit as many as necessary).
  6.  

  7. Make it so that every other shape in the grid is spinning in the opposite direction around the Y-axis.
  8.  

  9. Make it so that the entire grid spins about the X-axis in addition to each individual object spinning about its own Y-axis.

     

  10. Take some time to experiment with the rotation axes to create a interesting animation.