Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We explained in the course that two common function forms for defining the details of a perspective projection are frustum(left, right bottom, top, near far)

image text in transcribed

We explained in the course that two common function forms for defining the details of a perspective projection are frustum(left, right bottom, top, near far) and perspective (fovy, aspect, near, far). If one of these functions are used with actual parameter values to define the details of a symmetric perspective projection, it is possible to calculate what the parameters should be for the other function to get the same result. For example the calls perspective(60.0.0.8.4.0, 100). and frustum(-1,85. 1.85-2.31, 231, 4.0. 100.0), both produce the same projection and we can compute one set of parameters from the other one. In other words, for symmetric perspective projections, if we know the values of "fovy" (@y), "aspect" (a), 'near" (np), and "far" (fp) in a perspective function call, we can find the values for "left", "right", "bottom", "top", "near", and "far" that could be used in a frustum function call to produce the same result and vice versa. Suppose we want to do this. We want to calculate the parameters of frustum function from the parameters of perspective function for the same effect. Think about the geometric meaning of these values and find equations for "left", "right", "bottom", "top", "near", and "far" that uses variables y, a, np, and fp. Write the final equations below but also attach a document or image showing how you found the equations. We explained in the course that two common function forms for defining the details of a perspective projection are frustum(left, right bottom, top, near far) and perspective (fovy, aspect, near, far). If one of these functions are used with actual parameter values to define the details of a symmetric perspective projection, it is possible to calculate what the parameters should be for the other function to get the same result. For example the calls perspective(60.0.0.8.4.0, 100). and frustum(-1,85. 1.85-2.31, 231, 4.0. 100.0), both produce the same projection and we can compute one set of parameters from the other one. In other words, for symmetric perspective projections, if we know the values of "fovy" (@y), "aspect" (a), 'near" (np), and "far" (fp) in a perspective function call, we can find the values for "left", "right", "bottom", "top", "near", and "far" that could be used in a frustum function call to produce the same result and vice versa. Suppose we want to do this. We want to calculate the parameters of frustum function from the parameters of perspective function for the same effect. Think about the geometric meaning of these values and find equations for "left", "right", "bottom", "top", "near", and "far" that uses variables y, a, np, and fp. Write the final equations below but also attach a document or image showing how you found the equations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Finance Markets, Investments, And Financial Management

Authors: Ronald W Melicher, Edgar Norton

13th Edition

0470128925, 9780470128923

More Books

Students also viewed these Finance questions

Question

What is the main advantage to this tactic?

Answered: 1 week ago

Question

What administrative cost items are associated with this tactic?

Answered: 1 week ago

Question

What is the full-cost budget?

Answered: 1 week ago