A program displays four rectangles colored orange, blue, black, and gray. The blue rectangle is the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A program displays four rectangles colored orange, blue, black, and gray. The blue rectangle is the nearest to the camera at distance .3, the orange rectangle the next nearest at distance .5, then the gray rectangles at distance .7, and the black rectangle is the farthest away at distance .9. The image to the right is to give you some idea what the image might look like, but it uses different distances. The orange rectangle covers the other three rectangles. The gray rectangle is under the orange rectangle but covers the other two, and so on. In the program, the rectangles are rendered in this order: orange, blue, gray, black. The parts of this question ask you to describe how the rendered rectangles would look using depth testing and without depth testing. a. (4 points) If depth testing were not used in rendering, what would be the visual layering of the rectangles? That is, first, which rectangle would cover the other triangles? Then, which rectangle would be behind the first but would cover the other two. Then, which rectangle would be behind the first two but would cover the last triangle. And, finally, which triangle would be covered by all the other rectangles. b. (4 points) If depth testing were being used in rendering, what would be the visual layering of the rectangles? That is, first, which rectangle would cover the other triangles? Then, which rectangle would be behind the first but would cover the other two. Then, which rectangle would be behind the first two but would cover the last rectangle. And, finally, which rectangle would be covered by all the other rectangle. A program displays four rectangles colored orange, blue, black, and gray. The blue rectangle is the nearest to the camera at distance .3, the orange rectangle the next nearest at distance .5, then the gray rectangles at distance .7, and the black rectangle is the farthest away at distance .9. The image to the right is to give you some idea what the image might look like, but it uses different distances. The orange rectangle covers the other three rectangles. The gray rectangle is under the orange rectangle but covers the other two, and so on. In the program, the rectangles are rendered in this order: orange, blue, gray, black. The parts of this question ask you to describe how the rendered rectangles would look using depth testing and without depth testing. a. (4 points) If depth testing were not used in rendering, what would be the visual layering of the rectangles? That is, first, which rectangle would cover the other triangles? Then, which rectangle would be behind the first but would cover the other two. Then, which rectangle would be behind the first two but would cover the last triangle. And, finally, which triangle would be covered by all the other rectangles. b. (4 points) If depth testing were being used in rendering, what would be the visual layering of the rectangles? That is, first, which rectangle would cover the other triangles? Then, which rectangle would be behind the first but would cover the other two. Then, which rectangle would be behind the first two but would cover the last rectangle. And, finally, which rectangle would be covered by all the other rectangle.
Expert Answer:
Related Book For
Introduction To Probability And Statistics
ISBN: 9780495389538
13th Edition
Authors: William Mendenhall, Robert J. Beaver, Barbara M. Beaver
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
An investment was made for $35,000 and and income of $3,000. The ending value of the investment was $34,000. The percentage return on the investment is closest to: 5.7%, 8.6%, 11.8%
-
The set of solutions to a system of linear inequalities Ax c is a convex set.
-
1. How did P&G's decision to centralize and standardize global business services in the 1990s enable it to effectively outsource business services starting in 2003? 2. How has outsourcing benefited...
-
Suppose that when you lie on your bed, your body is supported by 30 of the springs in the mattress. Assuming that all the springs are identical and that your body presses on each spring equally,...
-
Rosita Flores owns Rositas Mexican Restaurant in Tempe, Arizona. Rositas is an affordable restaurant near campus and several hotels. Rosita accepts cash and checks. Checks are deposited immediately....
-
1. Using the Black-Scholes model compute the value of a European call option on a non- dividend paying stock with an exercise price of $40 and an expiration date 6 months from now when the stock...
-
Prepare a projected statement of comprehensive income for the year ended 31 December 2021 to determine the sales needed to produce a profit after tax that is 25% more than that for the year ending 31...
-
2. Explain how to complete the federal and provincial/territorial Personal Tax Credits Return - TD1 forms and the Qubec Source Deductions Return - TP-1015.3-V form.
-
Brock Brothers wants to maintain its capital structure which is 30 percent debt and 70 percent equity. The company forecasts that its net income this year will be $1,000,000. The company follows a...
-
Some companies will hedge in order to mitigate or balance risk and Apple is one of those that uses this method quite often. It works for Apple but may not work for other organizations. Walmart for...
-
4. Rico prepared his will on his new computer and signed it in his own handwriting. In it he said that he left all his property and money to his wife Anastasia. Is this will valid? Why or why not?...
-
1. Running is a popular form of exercise to burn calories and stay healthy. The number of calories burned while running depends on many factors, but averages about 100 calories per mile. Suppose...
-
During September, the Filtering Department of Olive Company had beginning transferred in units of 400 units with costs of $80,000. During the month, 800 units were transferred in from the Milling...
-
KD Insurance Company specializes in term life insurance contracts. Cash collection experience shows that 20 percent of billed premiums are collected in the month before they are due, 60 percent are...
-
Cruz Manufacturing Ltds sales slumped badly in 2019. For the first time in its history, it operated at a loss. The companys income statement showed the following results from selling 600 000 units of...
-
The following are emails from various students to Dr. Destiny Sands, who is a professor in the English Department. These students are wondering if Dr. Sands would let them register for her...
-
What are some flawed assumptions about workplace communication? What is the reality for each myth?
Study smarter with the SolutionInn App