3080/GV10 Coursework 2 - Animated OpenGL Robot

You are given very basic OpenGL code that draws a cube, which can be rotated with the mouse. Your goal is to extend this very basic program.

Part 1: (40%)

You are required to create a robot shape out of a number of boxes.

  1. A single box is already drawn. Add a number of differently sized boxes to build the shape of a robot. The robot should have a head, a torso, two arms (each consisting of upper arm, lower arm, and hand), and two legs (each consisting of upper leg, knee, lower leg, and foot).

Part 2: (60%)

Animate the robot.

  1. You have learned about hierarchical scene graphs. Animate your robot to imitate a walking motion. Use rotation and/or translation matrices for all joints and apply them in a hierarchical manner. You can use the animate() function to update the joint angles.

Extension:

If you want, you can get extra points by creating a whole group of walking robots.

Important:

You need to hand in a print out of your commented code (only yours with the context), a short report referring to the techniques you use - description of equations if necessary, the choice you made in your algorithm, and analysed results. Make sure to include images. We want to see your robot from part 1 from several different viewpoints. For part 2, we expect to see a sequence of images showing off the animation of the robot. Further, please submit your code using handin (log onto a UNIX machine to see what it does and how it works), so we can run your program.

Finally

The software described here and in the associated directories are for your personal use only, and in conjunction with the coursework for this course.

On no account may any aspect of the software be used or modified for use for any commercial reason whatsoever.


Jan Kautz, j.kautz@cs.ucl.ac.uk