
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
Material Type: Assignment; Class: Computer Graphics; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Due: 11:00am Tuesday, October 9, 2001
This assignment builds upon Assignment 1. In this assignment the goal is to fire the gun at the plane and have it disintegrate and fade away. Detailed instructions for submitting the assignments are available at http://www.cs.umd.edu/class/fall2001/cmsc427/submit.html As for assignment 1, please make sure that your final program works on machines in one of the following labs: Microsoft/WAM Lab (AVW 3452), CSD Junkfood Lab (AVW 3457), or UMD WAM account.
(a) Make the gun rotate by using the left and right arrow keys of the keyboard. The gun should rotate by a fixed rotation amount for each key press. (3)
(b) Implement code that will allow you to fire missiles at the plane from the gun. A missile should fly in the direction that the gun is pointing when the user presses the key ’s’ or ’S’. You should allow the capability to fire multiple missiles from the gun. You do not need to implement the physically-correct motion of the missile (which is a parabola). Having the missile simply fly in a straight line is sufficient. (5)
(c) Implement collision detection of the plane with the missile. This is a 2D problem for now. To simplify your computations, first compute the bounding extents of the plane. Then detect the intersection of the missile with this bounding rectangle. (5)
(d) When a collision occurs the plane should fade out and the missile should disappear. Also implement a motion-blur of the missile so that it appears as a flying streak. To implement missile’s motion blur as well as the plane fading out, you can use alpha-blending feature of OpenGL. (7)
Extra Credit: When the missile hits the plane, have the polygons of the plane fly apart simu- lating an explosion. As the plane polygons are moving apart they should fade out. (3)