首页 > > 详细

讲解INFR 1350U语言、讲解cs,Java,Python程序、辅导program留学生编程讲解数据库SQL|解析Haskell程序

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%

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!