Illustrate the objects in white on a black background

Assignment Help Computer Graphics
Reference no: EM131210679

Submit your solution document in the form of a single ZIP file on or before the cut-off date shown above.

Please follow the instructions on the filename convention, it is important!

You must implement your assignment in a single C file. This is necessary to expedite compiling for this assignment.

NAMING CONVENTION
File name:
{surname}_{firstnames}_tma.c Example
teh_james_tma.c

1. Please make sure your code must compile and run, on the suggested platform in class.

2. Include all class libraries and header files used. Zip your files together with the C file.

3. Remember to provide comments to your code.

4. Finally, submit your single ZIP file.

Question 1

Assemble an OpenGL/GLUT application in C++ that does the following:

(a) Using Open GL, create a resizeable window (resizing using mouse).

(b) Implement display function to draw the following 3D objects. Illustrate the objects in white on a black background. The objects should be drawn in a size relative to the window. For example, if the window is made smaller, the objects should be drawn smaller and vice-versa:

(i) Pyramid

(ii) Cube

(c) Develop the following keyboard control:
- Press Escape key to exit the application
- Press ‘c' key to display the Cube and not the Pyramid
- Press ‘p' key to display the Pyramid and not the Cube
- Press ‘a' key to display both the Cube and the Pyramid

(d) Employ more advanced computer graphics concepts by including the following features in your program.

(i) Create a color cube using one color for each vertices of the cube, and using a bilinear color interpolation method.

2456_Figure.jpg

(ii) Modify the program to rotate only the cube about any axis, whether with both objects displayed or only the cube displayed. This rotation should be started or stopped by the left mouse button.

(e) Appraise your code with clear comments, and ensure that your answers are explained in simple terms.

Reference no: EM131210679

Questions Cloud

C++ function that receives an integer passed to it : Write a statement that calls the divide By Two function from Pencil and Paper Exercise 1, passing the function the contents of the total variable. The statement should assign the function's return value to a double variable named quotient. (The an..
Payoff diagrams for the call : Verify that you obtain exactly same profit diagram for the purchase of a 950-strike S & R put and sale of a 1000-strike S&R put( put spread). What is the difference in the payoff diagrams for the call and put spreads? Why is there a difference?
Calculate the equity risk premium : If the rate of return on the S&P 500 index was 23% for 2009, and the risk-free rate at the end of 2009 was 1%, calculate the equity risk premium for 2009.
Write an algorithm to count up the total dollar amount : Write an algorithm to count up the total dollar amount of coins a person has removed. The algorithm should work for any number of coins and should report the dollar amount of the coins selected.
Illustrate the objects in white on a black background : MTD315 - Computer Interactive Graphics - Illustrate the objects in white on a black background. The objects should be drawn in a size relative to the window and employ more advanced computer graphics concepts by including the following features in yo..
Advantage of excess capacity in a existing plant : You are an analyst for a sporting goods corporation that is considering a new project which will take advantage of excess capacity in a existing plant. The plant has a capacity to produce 50000 tennis racquets
What in general will the project achieve : What in general will this project achieve? What is the history of the problem? Why is this problem interesting? When and why does the problem occur? Is the problem already solved? What is done now?
Is the vedanta philosophy reasonable : Is the Vedanta philosophy reasonable? Does it accurately describe reality? Why or why not? Consider the notion of a higher or "transcendental" reality. Could it be true that there is an "immaterial" realm, or do you agree with the materialist view?
Appropriate opportunity cost : The actual cost of materials used to produce each unit is $ 20. Your tax rate will be 40% and the appropriate opportunity cost is 12%.

Reviews

Write a Review

Computer Graphics Questions & Answers

  What design features stand out on each site

Are these features unique to the Web sites you selected or are they used by their competitors or similar sites? Are these design features used to be visual appealing or promote usability

  1 write a four to eight 4-8 page paper in which youcreate

1. write a four to eight 4-8 page paper in which youcreate an environmental scan for the company indicating the most

  What are the methods of motion specifications

Define Computer animation. What are the methods of motion specifications? What are the steps in animation sequence?

  Write program to animate two circles bouncing around window

Write a program to animate two circles bouncing around a window. The basic idea is to start the two circles somewhere in the interior of the window.

  Why a powerpoint presentation would be appropriate.

If you would use sound in the presentation, tell us what type of sound would be used and why it would be appropriate to include it

  Question 1a you are working as tv producer for the national

question 1a you are working as tv producer for the national tv station in your country. as such you have been assigned

  Program using webgl and javascript

Program using WebGL and JavaScript. Depict an 8 legged spider. Start with each leg just one cylinder

  Write the girlscout class assuming a girl scout object

Write the GirlScout class assuming a girl scout object is described by two pieces of instance data:name of girl scout(a String) andboxesSold(an integer that represents the number of boxes of cookies the girl scout has sold in the fundraiser).

  Are junk sms/mms worse than e-mail spam

Are Web page pop-ups, pop-unders, and Flash ads encroaching on the main page extremely annoying?

  Write an application with the gui as shown in attachment p9.

Program starts with an empty flag and none of the country buttons checked. When you select a country radio button, corresponding country's flag is displayed instead of empty flag.

  Define what is a virtual appliance and vapp

Virtual Machine (VM) is an important application that can works as a computer in any virtual environment. Explore and document some key attributes of a VM to be considered an efficient VM. What important points will you consider when using a VM as..

  What can be stated about line drawn by the following code

What can be stated about the line drawn by the following code? g.drawLine( 100, 200, 300, 200 ).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd