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:
- Change the cube geometry created in the program to be a teapot instead.
- Create a second geometrical shape (cube, sphere, another teapot, etc.), in a different location from and twice the size as the first one.
- 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).
- Make it so that every other shape in the grid is spinning in the opposite direction around the Y-axis.
- Make it so that the entire grid spins about the X-axis in
addition to each individual object spinning about its own Y-axis.
- Take some time to experiment with the rotation axes to create a interesting animation.