

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A problem set for a computer graphics course, cmsc 427. The assignment includes programming exercises to create a 3d scene with a moving car, add buildings, and implement steering and speed control. The document also includes pencil and paper exercises on 2d and 3d viewing positions and rotations about an axis.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Programming Exercise: Car 101
You will program a simple vehicle that can move around a 3D scene. Think of it as a car that is driving on a plane that also contains some buildings. You will add buildings, and the ability to steer the car and change its speed. You’ll also add a special somersault feature. We are including an executable showing my version of the finished project. Your version need not be identical in every detail. For example, you can vary the speed at which the car moves, how rapidly it steers, or the size and position of the buildings. However, keep the interface the same, using the keyboard functions we specify, so that we will be able to easily test the result.
We are giving you skeleton code that will display a rectanguloid on the screen. You will enhance this code to add more rectanguloids, to change the type of projection, and to allow yourself to navigate about the scene. Note that included in the code that we give you is a file vector3.cpp that contains many useful functions for vectors. There are skeleton functions for 3D rotation, which you might find it useful to write and use. We are also including code for the class “cube”, which you may use in drawing cubes (actually, rectanguloids).
Pencil and Paper exercises: For all these problems, you might compute a matrix by taking the product of several matrices. If you do that, it is not necessary to multiply these out. It is fine to express your answer as the product of matrices.