CS155 Computer Graphics
OpenGL Movie Lab
In this lab you'll create a short movie of an animated OpenGL scene. First download the code
movieCode.zip and unzip it. Create a new project, install the cpp and h files into the
project (not
the script convertAll),
compile and run. You should see a blue cube rotating around the y-axis. If you look at the code
you'll notice that
-
The animation runs on a timer.
-
The framebuffer is written to an image and then that image is written to a file.
Look in your project directory for the image files.
To create a movie from these images you can either figure out how to do it in Photoshop or follow the steps below.
- Move your BMP images to a new folder on knuth. Also move the convertAll script to the same folder.
- From that directory on knuth issue the following command
source convertAll
-
You should now have JPG versions of the images. Move them to a new folder on Charlie.
-
Use JES to create a Quicktime movie from the JPG images.
Updated 10/09