

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


This project is intended to familiarize you with OpenGL and its 3D modeling, viewing, and pro- jection transformations. You are to write a program to display an image of the “Utah teapot” on a table created from cubes. You will use both OpenGL and GLUT functions such as glTrans- latef() and glutWireTeapot(), and use mouse and keyboard input events. You will also need functions such as gluLookAt(), gluPerspective(), and glOrtho() to set up the view- ing and projection transformations. Please see the course web page at www.cs.rpi.edu/˜sakella/graphics/ for an example piece of OpenGL code, and for project updates and additional information.
You are to write an OpenGL program to draw a teapot on a table, where the table has four legs and is supported on a planar floor surface. The table consists of five cuboids, with one serving as the tabletop and the other four serving as table legs. You can use glutWireTeapot() to draw the teapot, and glutWireCube() to draw a cube.
direction, 2 units long along
along the
Each leg should be flush with one of the corners of the tabletop.
planar floor.
function to display the teapot, table, and the floor plane in different colors.
The main mouse event is: A simultaneous click of both the left and right mouse buttons inside the display win- dow should toggle the projection transformation mode between perspective projection and orthographic projection.
3 Grading
Your project will be graded for a total of 100 points as follows: