Posted: August 3rd, 2015

OpenGL, C++

 

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 3.

PART 2
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.

PART 3
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.
Do you want your assignment written by the best essay experts? Then look no further. Our team of experienced writers are on standby to deliver to you a quality written paper as per your specified instructions. Order Now, and enjoy an amazing discount!!

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Live Chat+1-631-333-0101EmailWhatsApp