CMPS 160 Introduction to Computer Graphics
Lab 2: Robotic Animals

Fall 2010

In this lab, you will create a robotic animal and animate it. You'll find stater code and introductory slides under the 'Resources' section. The specific of what you need to implement are listed in the 'Requirements / Grading' section below.

All the best animals will be saved and go down in 160 history so do your best!

Due : 10/26 and 10/28 (depending on whether you signed up for the Tuesday or Thursday lab)

Best Projects from Fall'07 (links to videos)






  • Modeling (50 points)
  • Your animal must have:
  • Body (10)
  • 4 Legs: multiple joints (thigh, calf) (15)
  • Head (10)
  • 1 Tail: multiple segments so it can curl (15)
  • If you add more geometric detail and/or color, your animal will enter a heightened state of awesomeness. The more awesomeness your animal achieves, the higher your chances will be of making it to the CMPS 160 Robotic Animal Hall of Legends.
  • Your animal must be made up entirely of geometric primitives. It should have hierarchical structure. The legs and head should be relative to the body's coordinate system. For the legs, the foot should be relative to the leg. This can be tedious but it will make the rest of this lab incredibly easy.
  • Animation (50 points)
  • Make your animal walk in a circle, jump, or stand on two legs, like a horse. Something with fairly complex movement and parts that move at different speeds.


  • Starter Code: [zip]
  • Note : You should only select the Desktop compile option (i.e. "Desktop 4.6.3" or similar) when opening the file since this is a desktop opengl project.
Submit Instructions


  • Using the 'submit' command
  • Submit your source code, a screenshot, video capture, and other files necessary to compile your code.
  • To submit your files, type:
  • submit cmps160-jed.f10 lab2 files
  • Making the video capture for your lab
  • Download and install CamStudio from  . Direct link to download
  • Start CamStudio. Cofigure the Video Codec used for capturing by going to 'Options -> Video Options'. The default compressor will be 'Microsoft Video 1'. This is ok. The default quality would be 70, increase this to 90. Click the 'Configure' button and increase the temporal quality to 90 too. 
  • Optionaly you can download and install the CamStudio Lossless codec from the CamStudio page for better video quality. Direct link :
  • Start your program. Switch to CamStudio and click the Record button. You'll have to drag the rectangle to select the screen area to capture so select your program window.
  • Make your robotic animal go through it's motions. Switch back to CamStudio and click the Stop button. It will prompt you for the name of the AVI file to save the captured video.
  • In lab demo
  • You will be required to attend the lab session you are enrolled in to demo your submitted code to the TA's.
page last updated: October 23, 2010.