Write the parametric form of the unit circle

Assignment Help Data Structure & Algorithms
Reference no: EM13801949

1) Write the parametric form of a ray with source p and direction d.

2) Assuming d in the above ray is a unit vector, write an algorithm that, for an arbitrary non-negative integer n, generates n evenly spaced points along the ray at 1 unit intervals.

3) Write the parametric form of the unit circle.

4) Given an arbitrary positive integer n, write an algorithm that generates n evenly spaced points that are sampled along the unit circle.

5) Suppose you have access to the functions scale(sx, sy), translate(tx, ty), and rotate(α) which generate the corresponding 2D homogeneous transformation matrices. Using these functions, write the expression of a transformation T such that if p lies on the unit circle, Tp will lie on an ellipse centered at c, with a major radius r1, minor radius r2 and rotated at an angle of α. You do not have to compute the full matrix. You may leave it expressed using the above functions. Hint: remember that order is important and that operations associate from the "inside out".

6) Write the implicit form of the unit sphere.

7) Given an arbitrary point p, write a test to determine if p is inside the unit sphere.

8) Suppose you are given an affine transformation T that maps the unit sphere to some arbitrarily located and oriented ellipsoid. Give an expression which, given an arbitrary point p, determines if p is inside said ellipsoid. Hint: use the result from the previous exercise.

9) You are given the vertices of a convex polygon in the 2D plane in counter-clockwise order as (p1, ..., pn). The coordinates of vertex pi are (xi, yi).

695_img9..png

9a) Give an expression for the coordinates of the outward-facing normal ni of the edge connecting pi and pi+1.

9b) Let q = (xq, yq) be an arbitrary point on the plane containing the given polygon. Let l be the line containing pi and pi+1, and let ni be the outward-facing normal vector as given in part a). What is a test that determines whether or not q lies on the outward side of l (the side toward which ni points)?

9c)  Provide an algorithm that determines whether a 2D point q is inside, outside, or on the boundary of the given polygon. Hint: Each edge is contained in an infinite line. Each infinite line divides the 2D plane into two half-planes: the "left" half-plane and the "right" half-plane (left and right are defined with respect to a counter-clockwise direction of traversal of the vertices). The key insight you should use is that the interior of a convex polygon is the intersection of the left half-planes of each edge of the polygon.

10) In stereo rendering, two cameras are needed, with slightly different vantage points and view directions; each is used to render an image for the corresponding eye. This can be specified with the following parameters:

• c: The center of interest, a point in world space that lies along the optical axis of both cameras.

• em: The midpoint between the eye positions of each camera.

• t: An "up" vector that allows us to specify a tilt rotation about the axis passing through c and em. The z axis is a special case.

• s: The distance between the two eyes.

All answers should be given in terms of the above stereo parameters, as well as any intermediate quantities you specify.

2132_img10.png

10a) Given an expression for the unit vector d that is perpendicular to both t and c - em such that (c - em, t, d) is a right-handed coordinate frame.

10b) Give expressions for eL and eR, the eye positions of each camera.

10c) Give expressions for the basis vectors that make up the two cameras' coordinate frames: (uL, vL, wL) and (uR, vR, wR)

10d) Give a test that determines whether or not a polygon face with normal n is a back face that can be culled when rendering from both cameras.

11) This illustration shows a top-down view of a 3D scene where each blue edge corresponds to a planar square perpendicular to the image plane (i.e. coming out of the page) and the eye e of a possible viewpoint lies in the image plane. The short vectors are normal vectors.

1502_img11.png


11a) Assuming the particular scene and camera placement shown above, is it possible to exclude any polygons from rendering? Explain your answer.

11b) Draw the BSP tree for the above scene that would result from adding the polygons to the tree in the order (S1, S2, S3, S4, S5, S6).

11c) Describe how your tree will be traversed when rendering the scene from the eye location specified.

Reference no: EM13801949

Questions Cloud

Indicate whether the f is statistically significant : 14. For each of the following F values, indicate whether the F is statistically significant at the specified alpha level: a. F = 4.80, df = 4, 40 α = 0.01 b. F = 5.02, df = 3, 60, α = 0.001 c. F = 3.45, df = 3, 27, α = 0.05 d. F = 4.99, df = 2, 150, ..
Suppose an investment analyst takes a random sample of us : a) Suppose an investment analyst takes a random sample of U.S equity mutual funds and calculates Sharp Ratio. The sample size is 100, and the average sharp ratio is 0.45. The sample has a standard deviation of 0.30. Calculate and interpret the 90 per..
Analyze the government''s role in protection of environment : Analyze the government's role in the protection of the environment. Be sure that your analysis includes a look at one of the following: conservation, environmentalism, protection, global warming, and energy concerns. How has the regulation of one ..
The federal government : A new motorcycle is being developed to meet new gas mileage standards recently passed by the federal government. An engineer tested three model designs by randomly assigning the motorcycles in a blind study (the riders recorded the mileage but did no..
Write the parametric form of the unit circle : Write the parametric form of the unit circle. Given an arbitrary positive integer n, write an algorithm that generates n evenly spaced points that are sampled along the unit circle
Intervention promotes efficiency and equity in the economy : Discuss how government intervention promotes efficiency and equity in the economy. Be sure that you include restraint of trade, indirect costs, deregulation, and overregulation within your analysis.
What are the implications associated with abuse and neglect : What are the implications associated with abuse and neglect.
Calculate the correlation matrix for this problem carry out : a) Kahn and Rudd (1995) examined whether historical performance predicts future performance for a sample of mutual funds that included 300 actively managed U.S. domestic equity funds. One approach they used involved calculating each funds' exposure t..
Social insurance programs and public assistance programs : Discuss the differences that exist between social insurance programs and public assistance programs. What is your opinion regarding how far the government should go in providing assistance to those who need these programs

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Describe implementation of algorithm on simd computer

Describe an implementation of that algorithm on an SIMD computer where the processors are connected to form a linear array

  What values will be in the registers after instruction

Calculate the average CPI for each machine, M1, and M2 - calculate the average MIPS ratings for each machine, M1 and M2 - What values will be in the registers after instruction is executed.

  Design a circular double linked list

Design a circular double linked list, for which the following operations should be implemented

  Write a script that checks the day of the week

Write a script that checks the day of the week, and takes one of two actions depending on the day. If the day is Monday through Friday, print the name of the day.

  Linear search algorithm with scans

Consider the linear search algorithm with scans through an n-element array a to determine if element xis in a. We say that the algorithm require i steps if x is located at index i; i.e. a[i] = x, for i = 0, 1, . . . , n ?

  What problems come up in verifying this function

How many recursive calls are made by the following initial calls?

  Write the algorithm which takes as input npda

Write the algorithm (described informally) which takes as input NPDA A and determines whether the language of A is nonempty.

  In the present scenario of global warming the computer hard

in the present scenario of global warming the computer hard ware and software are also contributing for the increase in

  How to work on datasturetur assignment kdfk dskf

kdfk dskf jkfjksdjkf jksdjfkjskfjksdjkf jksdjkf jsdkjfk dsk fkdsjkfj kdsjkf jdsk jksdjkf kdfk dskf jkfjksdjkf

  Generalize 2-3 algorithms for insert and delete

Generalize the 2-3 algorithms for INSERT and DELETE to K-J trees, where non-leaf vertices have between K and J children for fixed integers K >=2, and J>= 2K-1.

  1 what are the different applications of data structure2

1. what are the different applications of data structure?2. what are the basic limitations of linear array?3.

  1 describe the jsp life cycledraw a diagram of the various

1. describe the jsp life cycle.draw a diagram of the various events and transformations.for each part of the cycle

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