Sunday, November 16, 2008
Week 5? o.o
We learnt somethings new...
1.Stacks (push, pop, first in last out)
2. gluPerspective Aspect Ratio to window’s Aspect Ratio


Question 1 - How did it arrive with the transformed coordinates?

(2, 3, 1)=(0+2, 0+3, 0+1)
(2, 7, 1)=(0+2, 3+(4*1), 0+1)
(6, 7, 1)=(2+(4*1), 3+(4*1), 0+1)
(6, 3, 1)=(2+(4*1), 0+3, 0+1)


Question 2 - What is/are the transformation(s) applied?

The input x is multiplied by 4, and then added by 2
The input y is multiplied by 4, and then added by 3
The input z is multiplied by 4, and then added by 1


Question 3
OpenGL keeps track of only 1 matrix for transformation.
It will be tedious to do transformation for more than 1 mesh/ polygon/objects to different locations.
Why?

That way you will have to keep track of your matrix's current location.
Otherwise you will have to keep moving it back to the origin and then back away.
You also need to rotate everything back to default before rotating again.


Question 5 - What did you see? Screen shot it and explain why is the 2nd cube appeared at (0,0,0)?

(currently unable to post due to some unknown problem... will update asap)
The cube appears at the same place as the first cube.

The cube appeared at 0,0,0.
This is due to the translation of 5 units on the x-axis from 0, 0, 0 to 5, 0, 0.
It is then followed by another translation of -5 units on the x-axis from 5, 0, 0 to 0, 0, 0.

Posted at 1:51 AM

Senkai Denibo
start
Links
start
TaggyS!!!
start
Music Player
start
Credits
start
Lyrics
start