Docsity

computer graphics questions, Exercises of Computer Graphics and Animation

Toggle sidebar
bg1
1/3
Alex .University
Faculty of Science- Advanced Computer Graphics sheet-1
Dr. Hatem 2023
1- For cubic Hermit curve, if you know x1, x1\, x2 and x2\, write the equations which
calculate the Hermit curve constants (a, b, c, and d).
2- A three knots, three dimensional Bezier curve is defined by the following table at
(X, y, z).
P0
0
0
0
P1
2
3
2
P2
3
-1
2
Sketch this curve using at least five points (t=0, 0.2, 0.4, 0.6, 0.8, 1) based on Bezier
algorithm.
3- Draw a functional block diagram for architecture of a raster graphics system with a
display processor?
4- Two joints, a shoulder joint and an elbow joint. The shoulder joint is connected
by a 2-unit length upper arm to the elbow joint, which in turn is connected by a
single unit lower arm to the hand.
• The joints can only rotate in the xy-plane.
• The shoulder joint is attached to a z-axis vertical slider, which can raise or lower
the entire robot arm, but is not able to translate it in the xy-plane.
• The initial position of the arm is:
shoulder joint: position (0,0,0), rotation 0° elbow joint: position (2,0,0), rotation 0°
hand: position (3,0,0). There is a soft drink can located at position (1,1,1). The robot hand
must touch this can. Specify the transformation matrices of the joints needed to achieve
this.
5- Find the parametric equations for the straight line which pass by p1= (1,-2, 1) and p2=
(0,-2, 3). Then find the intersection point between this line and the plane which pass by
the original point and p1= (2, 0, 1) and p2= (0, 4, 0)
6- In the following, assume we are working in 2D and that S(a,b) scales by a in x, b in y,;
that R(a) rotates by the angle a, and T(t,s) translates t in x and s in y.
1.1 Which of the following pairs of transforms can be reversed without effecting the
result(that is, applied in reverse order)? Write Yes if they can be reversed and No if
they cannot. Explain why.
a) T(1,2)T(2,3)
b) S(2,1)R(45)
c) R(45)T(1,1)
d) R(10)R(20)
e) S(2,2)R(45)
7- Write down a sequence of transformations that has the effect of rotating an object by
45 degrees about the point (1,1).
pf3

Partial preview of the text

Download computer graphics questions and more Exercises Computer Graphics and Animation in PDF only on Docsity!

Alex .University Faculty of Science- Advanced Computer Graphics sheet- 1 Dr. Hatem 2023 1 - For cubic Hermit curve, if you know x 1 , x 1 , x 2 and x 2 , write the equations which calculate the Hermit curve constants (a, b, c, and d). 2 - A three knots, three dimensional Bezier curve is defined by the following table at (X, y, z). P0^0 0 P1 2 3 2 P2 3 - 1 2 Sketch this curve using at least five points (t=0, 0.2, 0.4, 0.6, 0.8, 1) based on Bezier algorithm. 3 - Draw a functional block diagram for architecture of a raster graphics system with a display processor? 4 - Two joints, a shoulder joint and an elbow joint. The shoulder joint is connected by a 2-unit length upper arm to the elbow joint, which in turn is connected by a single unit lower arm to the hand.

  • The joints can only rotate in the xy-plane.
  • The shoulder joint is attached to a z-axis vertical slider, which can raise or lower the entire robot arm, but is not able to translate it in the xy-plane.
  • The initial position of the arm is: shoulder joint: position (0,0,0), rotation 0° elbow joint: position (2,0,0), rotation 0° hand: position (3,0,0). There is a soft drink can located at position (1,1,1). The robot hand must touch this can. Specify the transformation matrices of the joints needed to achieve this. 5 - Find the parametric equations for the straight line which pass by p1= (1,- 2 , 1) and p2= (0,- 2 , 3). Then find the intersection point between this line and the plane which pass by the original point and p1= ( 2 , 0, 1) and p2= ( 0 , 4, 0 ) 6 - In the following, assume we are working in 2D and that S(a,b) scales by a in x, b in y,; that R(a) rotates by the angle a, and T(t,s) translates t in x and s in y. 1.1 Which of the following pairs of transforms can be reversed without effecting the result(that is, applied in reverse order)? Write Yes if they can be reversed and No if they cannot. Explain why. a) T(1,2)T(2,3) b) S(2,1)R(45) c) R(45)T(1,1) d) R(10)R(20) e) S(2,2)R(45) 7 - Write down a sequence of transformations that has the effect of rotating an object by 45 degrees about the point (1,1).

8 - How much memory must be installed on the graphic card to support 1024*768 by 16. million colors? Remember that for most cards, the RAM must be installed in 2, 4, 8 or 16 chunks. 9 - Write the implicit, explicit and parametric equations for ellipsoid 10 - Construct the required data tables to represent the following figure, and then write the suitable OPEN-GL code to represent the same shape. A B C D E (^) F G H 11 - Calculate a chain of 4 x 4 matrices that, when post-multiplied by the vertices of the house will translate and rotate the house from (3, 0, 0) to (0, - 3, 0). The transformation must also scale the size of the house by half (Assign any missed data). 12 - How many control points are required to specify a Bezier curve of degree d? 13 - The Bezier curve defined by the control points A0, A1, and A2 is to be transformed to the Bezier curve defined by B0, B1, B2, as shown in the figure. The transformation should move point A0 to B0 and A2 to B2.

  • Explain which transformation matrices are applied and in which order
  • Calculate the coordinates of control point B
  • Derive the parametric equation of the resulting curve, C2 at (t=0, 0.25, 0.5, 0.75, 1). 14 - Indicate which of the following are not Bezier curves (there may be none or more than one) and write why each cannot be a Bezier curve.