INFR 1350图形计算

Faculty of Business and Information Technology
INFR 1350U: Intro to Computer Graphics
Extra Assignment (#3) – Viewport Viewer – 5% of Final Grade
Due Date: December 17st (11:59pm)
The purpose of this assignment is to introduce you viewports using the OpenGL API. In particular, you will
obtain “hands-on” experience in setting up viewing transformations and experimenting with various
OpenGL “states”.
Create a simple OpenGL program that displays object(s) in 4 viewports as shown below:
The program should conform to the following:
• There should be borders around the viewports;
• Background of all viewports should be gray (like in the picture above)
• The user can select the “active” viewport by clicking on it (you should change the color of the
border when a viewport is selected). Any transformation (rotation, translation, etc…) should be
performed on the active viewport only.
• User should be able to navigate the scene in the selected viewport using WASD keys and/or arrow
keys (for ortho projections). Mouse control (like in an FPS game) and WASD keys and/or arrows
for the perspective projection. Navigation should be allowed only in the active viewport. The
other viewports should remain static.
• There should be at least 1 light source.
• You can load objects with your .obj loader.
You may develop this project by expanding on any code given in-class or tutorial.
Item Contribution
A viewport is “selected” by clicking on it 2.0%
Transformations occur only in the active viewport 1.5%
Navigation is provided in the active viewport 0.5%
At least 1 light source 0.5%
4 viewports are provided as shown above 0.5%

你可能感兴趣的:(图像识别)