COMP390 2D Graphics
TME 1: 2D Graphics
TME 1: 2D Graphics
Total: 100 marks
Weight: 10% of your final grade
This assignment consists of three programming exercises that aim to develop your skills in 2D graphics using OpenGL . Be sure to complete Units 1-3 before beginning
Program 1 of this TME, and complete Units 4 and 5 before beginning Programs 2 and 3, respectively. Please contact your tutor to discuss any concerns you have with the
units.
Program 1: Anti-aliasing
By this time, you should have completed the first three units of the course. Please contact your tutor to discuss any concerns you have with the units.
Your program should produce the following output. Notice that each “house” is a combination of one triangle and one rectangle. You can use either GL_LINE_LOOP or
GL_POLYGON to render the triangles and the rectangles. If you use GL_POLYGON, you will need to set the polygon mode to GL_LINE. Set the default colour to black in
your initial routine in both approaches.
The program must have one routine to render each house. Carefully compare the upper and the lower house. The lower house is drawn using the anti-aliasing technique
discussed in Unit
Deliverables
You are required to submit:
1. Source code, including .cpp and .h files.
2. The source programs should contain proper comments, including a header clearly stating your name, ID, assignment number, and a brief description of the
program, as well as a brief description of each routine.
Evaluation
Functionality (60%)
Proper coding (30%)
Sufficient and appropriate in-program comments (10%)
Program 2: 2D Graphics Transformation
By this time, you should have completed the first four units of the course. Please contact your tutor to discuss any concerns you have with the units.
The program should produce the following output. You can reuse code from Program 1 to reproduce these houses. The program must have one routine to render each
house. You must then transform (translate and rotate) the image to the desired orientation before calling the routine to render the next house. Hard-coding the coordinates
of the five houses is NOT acceptable.
Program 3: Colouring and Shading
By this time, you should have completed the first five units of the course. Please contact your tutor to discuss any concerns you have with the units.
Your program should produce the following output. Each of the four vertices should be set to red, green, blue, and yellow, respectively.
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。