共计 1138 个字符,预计需要花费 3 分钟才能阅读完成。
CS 450/550 Project #2
CS 450/550 — Fall Quarter 2021
Project #2
100 Points
Due: October 12
Animate a Helicopter!
This page was last updated: September 14, 2021
Introduction
This project is to animate a helicopter and look at it in two different 3D views.
Requirements:
1.
Draw a helicopter.
(Don’t worry — this won’t be as hard as it sounds.)
2.
The helicopter’s 2 blades must be scaled properly.
The helicopter’s 2 blades must be oriented properly.
The helicopter’s 2 blades must be rotating properly.
3.
Allow two views: an “Outside” view of the entire scene
and an “Inside” view from the helicoptercockpit.
Toggle between them with a pop-up menu.
(You can also use keyboard hits, but in-addition-to,not instead-of.)
For each view, use a different call to
gluLookAt()
to position the eye.
A good eyepoition for your Inside View is (-0.4, 1.8, -4.9) .
A good look-at position for your Inside View is (-0.4,1.8, -10.) .
4.
Keep the same Xrot, Yrot, and Scale features as we’ve used before,
but only in the Outside View
.
Donot use Xrot, Yrot, and Scale in the Inside View.
5.
Use
gluPerspective()
, not
glOrtho()
.
6.
Put some sort of 3D scene for your Inside Eye to see, looking outside the helicopter
(off in the -Zdirection).
One or more GLUT wireframe objects might work well.
Or, whatever you did in the firstproject.
Or some sort of colored grid.
Or, all of these things.