联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2020-12-17 11:31

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%


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp