CSC 418/2504 Computer Graphics Assignment 2Β Part A

$35.00

Download Details:

  • Name: A2-keui8b.zip
  • Type: zip
  • Size: 3.26 MB

Category:

Description

5/5 - (1 vote)

1. Transformations [10 marks]
[4 marks] A 2D Affine transformation is completely specified by its effect on three non-colinear
points, i.e., by how it maps a triangle into another triangle. Find the 2D affine transformation that
maps points π’‚πŸ, π’‚πŸ, and π’‚πŸ‘ into points π’ƒπŸ, π’ƒπŸ, and π’ƒπŸ‘, respectively.
Under what conditions (for the points), is this mapping fully determined?
[2 marks] How many point mappings need to be specified to completely determine a general 2D
Homography? A 2D similarity transform?
[4 marks] Are the centroid (average of the three points) and circumcenter (intersection point of
the perpendicular bisectors) of a triangle affine invariant? Prove or provide a counterexample.
2. Viewing and Projection [10 marks]
[3 marks] Why is the image formed in a pinhole camera inverted? (no more than a few sentences)
[3 marks] Given a 3D camera position 𝒄, a point along the viewing direction at the centre of the
screen 𝒑, and a vector parallel to the vertical axis of the screen 𝒖, compute the world to camera
transformation matrix.
[2 marks] Under what conditions will a family of lines parallel to the vector
𝒗 = (𝑣π‘₯, 𝑣𝑦, 𝑣𝑧) remain parallel after this perspective projection?
[2 marks] When this condition is not met, do all lines in the family converge at a single 2D point?
If so, which point? If not, provide a counterexample.
3. Surfaces [15 marks]
The tangent plane of a surface at a point is defined so that it contains all tangent vectors. In this exercise,
you will verify that a specific tangent vector is contained in the tangent plane. Let the surface be a torus in
3D (Figure 1) defined by the implicit equation:
𝑓(π‘₯, 𝑦, 𝑧) = (𝑅 – π‘ π‘žπ‘Ÿπ‘‘(π‘₯
2 + 𝑦
2
))
2
+ 𝑧
2 βˆ’ π‘Ÿ
2 = 0, where 𝑅 > π‘Ÿ.
[3 marks] Give a surface normal at point 𝒑 = (π‘₯, 𝑦, 𝑧), using the surface implicit equation.
[3 marks] Give an implicit equation for the tangent plane at 𝒑.
[3 marks] Show that the parametric curve 𝒒(πœ†) = (𝑅 cosπœ†, 𝑅 sinπœ†, π‘Ÿ) lies on the surface.
[3 marks] Find a tangent vector of 𝒒(πœ†) as a function of πœ†.
[3 marks] Show this tangent vector at 𝒒(πœ†) to lie on the implicit equation of the tangent plane.
Left: Torus, showing a tangent plane, normal and 3D curve at a point. Right: Close-up.
4. Curves [10 marks]
Consider a curve made up of two cubic Bezier segments 𝐡1(𝑑) for 0 ≀ 𝑑 ≀ 1 using π‘·πŸ … π‘·πŸ’, and
𝐡2(𝑑 βˆ’ 1) for 1 ≀ 𝑑 ≀ 2 using π‘·πŸ’ … π‘·πŸ•.
[2 mark] What are the tangents 𝐡1β€² and 𝐡2β€² at the shared point π‘·πŸ’?
[2 mark] What are the second derivatives 𝐡1β€²β€² and 𝐡2β€²β€² at π‘·πŸ’?
[4 mark] Given π‘·πŸ to π‘·πŸ’, are the values of π‘·πŸ“, π‘·πŸ” and π‘·πŸ• fixed for the combined curve to be
𝐢
2
continuous? If so, what value are these points constrained to?
[2 mark] Give 4 reasons why cubic Bezier curves are popular in graphics.