Answered step by step
Verified Expert Solution
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)
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started