Tutor knowledgeComputer GraphicsLLM Files / Knowledge Files365 KB
{0}------------------------------------------------
The helicopter should fly at a constant altitude of 5 units following a circle of radius of (also) 5 units and be tilted 45 degrees towards the ground. The helicopter rotates at a speed of 15 degrees per second in the counterclockwise direction. At time the helicopter is at position .
The image below illustrates the situation. On the left, a side view of the helicopter at position . On the right, a top view of the helicopter at position and at position after rotating degrees. The red point is the origin.
Which of the following matrices represents the helicopter's orientation and position in regard to the origin after seconds?
Consider the initial position of the helicopter as centred at the origin and facing the axis.
Image /page/0/Figure/6 description: The image contains two diagrams illustrating a movement or trajectory. The first diagram shows a starting point labeled "C0" with an arrow indicating a direction at a 45-degree angle. There are dashed lines indicating a distance of "5" units both vertically and horizontally from the starting point to a red dot. The second diagram shows a circular path with a radius of "5" units. The starting point "C0" is at the top of the circle, and an arrow indicates a direction tangent to the circle. Another point is shown on the circle, and an angle "θ" is marked between the z-axis and the line connecting the center of the circle to this point. The x, y, and z axes are also labeled in both diagrams.
Image /page/0/Figure/7 description: The image shows eight matrices labeled A through H. Each matrix is a 4x4 matrix containing a mix of numbers, including fractions, square roots, and integers. The matrices are arranged in two rows of four, with the labels positioned to the left of each matrix.
{1}------------------------------------------------
A. B. C. D. E. F. G. H.
A. B. C. D. E. F. G. H.
Consider the floor as the plane , normal and made of a completely diffuse material with coefficient .
To which values should we set the light parameters and in order for an observer to perceive the point on the floor as a shade of gray?
Obs: Think how shades of gray are represented in RGB.
A. B. C. D. E. F. G. H.
B. C. D. 1 E. F. 1.75 G. H. 2 A.
LED lamps often combine several colored lamps to simulate white light. Assume are light sources with RGB emission (0.3,0.4,0.2), (0.2,0.1,0.2), (0.2,0.1,0.4) respectively. Calculate the values of , such that the added emission matches .
What is the result of
aligned projector at the same distance?
A. 5 B. 6 C. 7 D. 8 E. 9
F. 9.2 G. 9.5 H. 10 I. 11.4
{2}------------------------------------------------
Given the point on the sphere, at which point will the light be reflected on the ceiling?
A. B. C. D. E. F. G. H.
Consider now that we want to approximate circles by using a primitive. It is similar to , but after the three first vertices, every new vertex connects to the first and last vertex. So, for a sequence of vertices
the following triangles are created
v_0, v_4, v_5.
}
To create approximations of a circle in 2D space, we use the method below. Note that we are using 2D vertices instead of .
// input is center of circle and vector from center to first point
void \ draw \ (c_{-}x \ , \ c_{-}y \ , \ v_{-}x \ , \ v_{-}y) \ \{
float x = v_x;float \ y = v_{-y};float \cos = 1.0 \text{ f/sqrt} (2.0 \text{ f});float \sin = 1.0 \text{ f/sqrt} (2.0 \text{ f});\text{glBegin}(\text{GL\_TRIANGLE\_FAN});glVertex2f (c_x, c_y);\text{glVertex2f} \quad (\quad \text{c\_x+x} \quad \text{c\_y+y} \;);for (int i = 0; i < 8; +\!\!+\!\!i) {
\text{float px} = \cos*x - \sin*y;\text{float } \text{py} = \cos \ast x + \sin \ast y;\text{glVertex2f (}c_x+px, c_y+py);x = px;y = py;\text{glEnd}();
The rasterizer is now modified to create and then rely on AABBs for these fans that approximate circles. If we call the method with parameters
draw
what are the coordinates of the four corners of the respective AABB?
{3}------------------------------------------------
| A. | B. |
|---|
(the function returns )
<pre>bool PixelColor (int coordx, int coordy) {</pre>int x = mod(coordx, 10);int y = mod(coordy, 8);if (y = 0 \mid | y = 4)return false;
\textbf{if} \ (\text{y} < 4 \ \&\& \ \text{x} == 4)return false;
\textbf{if} \ (y > 4 \ \&\& \ x == 9)return false;
return true;
}
<pre>void CreateImage () {</pre>
for (int i=0; i < 20; ++i)
for (int j=0; j<20; \pmj)
{
if (PixelColor(i,j))
Img.pixel(i,j) = (1.0, 0.0, 0.0);
elseImg.pixel(i,j) = (0.2, 0.2, 0.2);
}
Image /page/3/Figure/5 description: The image shows eight different brick patterns, labeled A through H. The patterns are all red bricks with black mortar. Pattern A has vertical bricks with horizontal mortar lines. Pattern B has a horizontal band of mortar in the middle. Pattern C has a standard brick pattern. Pattern D has a more random brick pattern. Pattern E has a standard brick pattern. Pattern F has a horizontal band of mortar in the middle. Pattern G has a grid pattern. Pattern H has a more random brick pattern.
{4}------------------------------------------------
As an example, for initial texture coordinates the final texture coordinates would be .
What would then be the final texture coordinates when accessing initial texture coordinates
| [0.0, 1.0] | [0.5, 1.0] | [1.0, 1.0] | |
|---|---|---|---|
| [0.0, 0.8] | [0.5, 0.8] | [1.0, 0.8] | |
| [0.0, 0.5] | [0.5, 0.5] | [1.0, 0.5] | |
| [0.0, 0.2] | [0.5, 0.2] | [1.0, 0.2] | |
| V | [0.0, 0.0] | [0.5, 0.0] | [1.0, 0.0] |
| u |
| A. |
|---|
{5}------------------------------------------------
How much memory do we need to store all mipmap levels (including the original texture), if the original button texture has a width of and a height of .
The solution can be obtained in several ways, similar to the solution for original Mipmaps.
The sketch is not up to scale.
A. 1.5 B. 2 C. 3 D. 4 E. 4.5 F. 6 G. 7.5
{6}------------------------------------------------
For reference: a green room under white light and a pink plastic pink ball under white light.
Image /page/6/Picture/2 description: The image shows an empty room with green walls, floor, and ceiling. The room is rectangular and appears to be illuminated by a soft, diffused light. There are no objects or furniture in the room, and the walls are smooth and featureless. The perspective is from a slightly elevated viewpoint, looking down into the room.
Image /page/6/Picture/3 description: The image shows a close-up of several pink plastic balls. The balls are all the same size and color, and they are arranged in a random pattern. The balls are smooth and shiny, and they reflect light. The image is well-lit and in focus.
{7}------------------------------------------------
You can use the following image patch to help in your explanation. For example, the top left corner of this patch has gray value , and so on.
| a | b | c |
|---|---|---|
| d | e | f |
| g | h | i |
Image /page/7/Figure/5 description: The image shows a black and white drawing of a tall building in two-point perspective. The building is rectangular and has multiple stories, each with several windows. The lines of the building converge towards two vanishing points on the horizon line, which is labeled in the drawing. The vanishing points are located on either side of the building, indicating the perspective technique used. The base of the building is slightly wider than the top, adding to the sense of depth. The drawing is clean and precise, with clear lines and details.
Taken from
A. B. C. D.
{8}------------------------------------------------
Image /page/8/Figure/1 description: The image contains two diagrams of stick figures in different poses. The diagram on the left is labeled "rest pose" and shows a stick figure standing straight with arms at its sides. The diagram on the right is labeled "target pose" and shows a stick figure with its arms raised to the sides. The left arm is labeled. The diagrams are used to illustrate the difference between a rest pose and a target pose.
The parts expressed in their original coordinate frame have the following properties:
For the target pose, the following properties are given:
Given the following two transformation matrices:
Define the sequence of matrices to multiply the points of the hands by in order to draw it at the target position. You should describe two sequences, one for the left hand and one for the right hand. You do not need to provide a single matrix, a product of matrices is fine.
Point r' is the projection of the top of the leaning tower (point r) and has height equal 1m on the image plane (the exercise uses an unconventionally large camera to ease calculations). Knowing that if the tower stood straight its top would be at point at a distance of 10m from the ground, what is the distance from the top of the leaning tower to the ground?
{9}------------------------------------------------
Image /page/9/Figure/0 description: The image shows a diagram with points labeled e, f, p, p', q, r, and r'. There is a coordinate system with axes labeled Y and Z. The point f is labeled with "f = 2". There are lines connecting e to q, e to r, e to p', and e to r'. There are also dashed lines connecting p to r and p' to r'. Additionally, there are vertical lines connecting p to q and p' to r'. The Y-axis is labeled with "1".
B. 6
A. B. C. D.
The colour of any point inside one of the squares is defined by bilinear interpolation of the colours of its vertices. Inside the overlapping region, the final colour is defined by adding the interpolated colours of the two squares at point p. Given the following corners: , compute the resulting colour at p. Explain how you arrived at your solution (just providing the colour of does not count as a valid explanation).
{10}------------------------------------------------
Image /page/10/Figure/0 description: The image shows two overlapping rectangles, labeled A and B, within a larger gray rectangle. Rectangle A is defined by points a, b, c, and d, while rectangle B is defined by points e, f, g, and h. A point labeled 'p' is located within the overlapping region of the two rectangles.
Image /page/10/Figure/2 description: The image shows a rectangular shape with a red fill and a blue border. The border size is indicated by two small black lines with the text 'border size' pointing to each line.
(the figure is for illustration only, it is not supposed to reflect the given coordinates precisely)
Image /page/10/Picture/5 description: The image shows a circular design divided into sections with alternating colors. The design consists of two concentric circles. The outer circle is divided into four quadrants, with the top-left and bottom-right quadrants colored red, and the top-right and bottom-left quadrants colored blue. The inner circle is similarly divided into four quadrants, with the top-left and bottom-right quadrants colored blue, and the top-right and bottom-left quadrants colored red. The overall effect is a symmetrical pattern of alternating red and blue sections within the two circles.
To define the underlying geometry we approximate the outer circle by triangles. We start with four triangles where two edges of each triangle are aligned with the x and y axis, and one vertex is at the centre of the circle. We then subdivide each triangle into two by splitting in half the edge opposite to the centre vertex, obtaining 8 triangles. This subdivision scheme is further repeated many times until the outer circle is well approximated by the triangles, as illustrated below. Given this geometric approximation of the circle by triangles, which of the following textures could be used to achieve our board image above? You should pick the texture with minimum amount of texels that is able to texturize the board, and assume that you can specify new texture coordinates for each triangle at each vertex.
{11}------------------------------------------------
Image /page/11/Figure/0 description: The image shows a series of circles with lines inside, followed by the letters A, B, C, and D, each followed by a description of a texture and a corresponding image of the texture. The circles have an increasing number of lines inside, starting with four lines and increasing to eight and then twelve. The letters A, B, C, and D are followed by the descriptions "1x2 texture", "1x4 texture", "2x2 texture", and "4x4 texture", respectively. The corresponding images of the textures are made up of red and blue squares. The 1x2 texture is a rectangle with one red square and one blue square. The 1x4 texture is a rectangle with one blue square, one red square, one blue square, and one red square. The 2x2 texture is a square with one blue square, one red square, one red square, and one blue square. The 4x4 texture is a square with one red square, one blue square, one blue square, and one red square.
{12}------------------------------------------------
You can use the following image patch to help in your explanation. For example, the top left corner of this patch has gray value , and so on.
| a | b | c |
|---|---|---|
| d | e | f |
| g | h | i |
Solution: Applying first the horizontal filter the new values of the middle column are: Then, applying the vertical filter on the new middle column composed by , and : which is the same as applying the box filter directly over e.
Image /page/12/Figure/6 description: The image shows a line drawing of a tall building in two-point perspective. The building is rectangular and has multiple stories, each with several windows. Lines converge from the top and bottom of the building towards two vanishing points on the horizon line, illustrating the perspective technique. The horizon line is labeled, and the vanishing points are also labeled.
Taken from
{13}------------------------------------------------
Solution: Only two points are needed because the vertical lines are parallel on the image, thus the third vanishing point is projected to infinity.
To determine the locations take the directions of the sides of the building in 3D (with ) and project using the projection matrix.
If the camera is tilted a third vanishing point would appear at the top (currently, it is at infinity).
Solution: Thus and , hence . We can also do it the other way around: Know that a point lies inside of the triangle, when we have We see , thus because of the constraint on a because of the constraint on a because of the constraint on a implies thus . Hence, .
A. B. C. D.
Image /page/13/Figure/8 description: The image shows two diagrams of a stick figure in different poses. The diagram on the left is labeled "rest pose" and the diagram on the right is labeled "target pose". The stick figure in the "rest pose" diagram has its arms at its sides, while the stick figure in the "target pose" diagram has its arms outstretched. The "target pose" diagram also has a coordinate system labeled X and Y. The diagram on the left has labels for the different body parts, including d_shoulder, d_arm, d_forearm, d_hand, and d_body. The diagram on the right has a label for the left arm.
The parts expressed in their original coordinate frame have the following properties:
{14}------------------------------------------------
For the target pose, the following properties are given:
Given the following two transformation matrices:
Define the sequence of matrices to multiply the points of the hands by in order to draw it at the target position. You should describe two sequences, one for the left hand and one for the right hand. You do not need to provide a single matrix, a product of matrices is fine.
Solution: left hand: right hand:
Point is the projection of the top of the leaning tower (point r) and has height equal 1m on the image plane (the exercise uses an unconventionally large camera to ease calculations). Knowing that if the tower stood straight its top would be at point at a distance of 10m from the ground, what is the distance from the top of the leaning tower to the ground?
Image /page/14/Figure/18 description: The image shows a diagram with points labeled e, f, p, p', q, r, and r'. There is a coordinate system with axes labeled Y and Z. The point f is labeled with the value 2. There are lines connecting the points e to q, e to r, p to q, p' to r', e to r', and p to r. The lines e to r' and p to r are dashed.
{15}------------------------------------------------
A. B. C. D.
normalize light direction normalize desired reflected direction towards Q: add both and normalize again normal direction =
Solution: For , we have , which is on the cylinder. so the normal there is also The normalized incoming light direction is Hence, the reflected ray is: Thus:
The colour of any point inside one of the squares is defined by bilinear interpolation of the colours of its vertices. Inside the overlapping region, the final colour is defined by adding the interpolated colours of the two squares at point p. Given the following corners: , compute the resulting colour at p. Explain how you arrived at your solution (just providing the colour of does not count as a valid explanation).
{16}------------------------------------------------
Image /page/16/Figure/0 description: The image shows two overlapping squares, labeled A and B, within a larger rectangular frame. Square A is defined by vertices a, b, c, and d, while square B is defined by vertices e, f, g, and h. A point labeled 'p' is located within the overlapping region of the two squares.
Solution: The vertices have the following weights: The colour of for square A is: The colour of for square B is: The final colour is:
Image /page/16/Figure/3 description: The image shows a diagram of a rectangle inside another rectangle. The inner rectangle is red, and the outer rectangle is blue. The space between the two rectangles is labeled as "border size" with arrows pointing to the space on the bottom and right sides. The background is light gray, and there are dotted lines crossing in the center of the image.
(the figure is for illustration only, it is not supposed to reflect the given coordinates precisely)
{17}------------------------------------------------
Solution: 1 unit horizontally = 1 unit vertically corners of blue rectangle:
Image /page/17/Picture/2 description: The image is a circular design divided into quadrants of alternating blue and red colors. The design features two concentric circles, with the inner circle also divided into quadrants of alternating blue and red. The outer ring, formed between the two circles, follows the same alternating color pattern as the inner circle.
To define the underlying geometry we approximate the outer circle by triangles. We start with four triangles where two edges of each triangle are aligned with the x and y axis, and one vertex is at the centre of the circle. We then subdivide each triangle into two by splitting in half the edge opposite to the centre vertex, obtaining 8 triangles. This subdivision scheme is further repeated many times until the outer circle is well approximated by the triangles, as illustrated below. Given this geometric approximation of the circle by triangles, which of the following textures could be used to achieve our board image above? You should pick the texture with minimum amount of texels that is able to texturize the board, and assume that you can specify new texture coordinates for each triangle at each vertex.
Image /page/17/Figure/4 description: The image shows three circles, each divided into an increasing number of equal parts, followed by an ellipsis. Below the circles are three colored rectangles. The first rectangle, labeled "A. 1x2 texture:", is divided into two equal parts, one red and one blue. The second rectangle, labeled "B. 1x4 texture:", is divided into four equal parts, colored blue, red, blue, and red. The third rectangle, labeled "C. 2x2 texture:", is not shown.
{18}------------------------------------------------
Image /page/18/Picture/0 description: The image contains two squares, one above the other. Each square is divided into four smaller squares. The top square has the top left and bottom right squares colored red, and the top right and bottom left squares colored blue. The bottom square has the top left and bottom right squares colored blue, and the top right and bottom left squares colored red.
D. texture:
Part 1 of 9 — loading the next…
| C. | D. |
| E. | F. |
| G. | H. |
| B. |
|---|
| C. |
|---|
| D. |
|---|
| E. | F. | G. | H. |