Showing posts with label Character Animation. Show all posts
Showing posts with label Character Animation. Show all posts

Tuesday, June 9, 2009

Tips Answers for CA

I know its late!! Tried to answer as best i can.
Didnt answer 2c and only give the formula for 5
If u see any mistakes, plz inform me.

1. RGB-

Magenta = (1,0,1)

(R,G,B)

CMY-

Magenta = (RGB white)-(RGB magenta) = (1,1,1) – (1,0,1) = (0,1,0)

2.

a. Vector A->C = C-A= (4,1,2) – (3,3,2) = (1,-2,0)

Vector A->B = B-A= (2,2,1) – (3,3,2) = (-1,-1,-1)

Vector B->C = C-B= (4,1,2) – (2,2,1) = (2,-1,1)

b. Dot product A->B . B->C = (-1,-1,-1) . (2,-1,1) = (1st * 1st)+ (2nd *2nd)+(3rd * 3rd)

=(-1*2)+(-1*-1)+(-1*1)=-2

3. First Object

glBegin (GL_LINE_LOOP);

glvertex2i (200,60);

glvertex2i (240,150);

glvertex2i (280,60);

glvertex2i (190,120);

glvertex2i (290,120);

glEnd();

Second Object

glBegin (GL_LINE_STRIP);

glvertex2i (200,60);

glvertex2i (280,60);

glvertex2i (240,150);

glEnd();

glBegin (GL_LINE_STRIP);

glvertex2i (290,120);

glvertex2i (190,120);

glvertex2i (240,30);

glEnd();

4. Transform Rotate Scale

|1 0 tx| |cos& -sin& 0 | |sx 0 0 |

|0 1 ty| | sin& cos& 0 | |0 sy 0 |

|0 0 1 | | 0 0 1 | |0 0 1 |

The matrixes must be written from right to left. Instead of [S] [R] [T], the order of the question.

We have [T][R][S] (Remember This!!)

Transform Rotate Scale

|1 0 2 | | 0 -1 0 | |3 0 0 |

|0 1 2 | | 1 0 0 | |0 4 0 |

|0 0 1 | | 0 0 1 | |0 0 1 |

Then add them one by one.

[T]+[R]

[T] 1st row by [R] 1st column = (1*0)+(0*1)+(2*0)=0

[T] 1st row by [R] 2nd column = (1*-1)+(0*0)+(2*0)=-1

[T] 1st row by [R] 3rd column = (1*0)+(0*0)+(2*1)=2

[T] 2nd row by [R] 1st column = (0*0)+(1*0)+(2*1)=2

[T] 2nd row by [R] 2nd column = (0*-1)+(1*0)+(2*0)=0

[T] 2nd row by [R] 3rd column = (0*0)+(1*0)+(2*1)=2

[T] 3rd row by [R] 1st column = (0*0)+(0*0)+(1*1)=1

[T] 3rd row by [R] 2nd column = (0*-1)+(0*0)+(1*0)=0

[T] 3rd row by [R] 3rd column = (0*0)+(0*0)+(1*1)=1

So[TR] =|0 -1 2|

|2 0 2|

|1 0 2|

Then repeat the steps for [TR] + [S]

5. Xb = m∑i=0 mCi ui (i-u)m-I X

Yb = m∑i=0 mCi ui (i-u)m-I Y

m= number of point given -1

C= Combination (We did this B4)


Saturday, June 6, 2009

Exam Tips for CA

1. RGB space, CMYK space (conversion from RGB to CMYK and vice versa)
2. Given 3 points ( 3, 3, 2) , (2,2,1) and (4,1,2) find the vector, dot product, cross product and plane equation.
3. Draw the 2 object below with Open GL code


4. 2D transformation
Compose a 2D transformation matrix with
- scale in x by 3 and in y by 4; (Scale(3,4))
- then rotate trough 90 degree around origin (rotate(90))
- translate trough (2, 2)

5. Bezier Curve
Given V0(0,3), V1(1,5), V2(4,0) and V3(6,2) are the control points. Find the points where the curve will pass through when U = 0.5 using bezier curve technique
6. Find vector list, edge list, normal list and face list from a 3d object.


7. Describe each below:
Pre-production, Production, Post-production
8. Express the following terms : Animatronic, stop motion animation.
9 A triangle below is to be rotated for 30 degree in anti-clock wise order. given the pivot point (black dot) at (2,3) find the composite matrix in 2D space to perform the transactin.