Professional Documents
Culture Documents
R.1y c,1c;,t1ng 1•, thf' moc;,t b,1c;,1c of m.iny romps,tf'r gr.iph,c,, r,~..,cf'r1ng
.1 l gnrithm; th<lt \J'iP thf' el:'nrnPrr1r .1li:;orithm 0i rav t•.1c1np, Rel)
tr rte mv, -hrt\••rl rPndPr1np, dl~or1thm\ npPr11tf• in 1mar:•• t;rc1Pr to r~,,•d,r,•
three J1rt1l'fl',IUfl,1I '>ll'r1l''.. tu twu ll•tnl'fc',IUrlJI ,n:.i)-'.l")
AIJ.;:ur1thm
2. Generate a Ray from the eye point through each point 0"1 :~e
screen.
Cornµute .it wh.it µumt <..H ~.HJ.,,1t:un of tht• • ,rtu,11 ·,uet.•11. l'd1..t, 'd',
t11!', Ill tht· \lfl'l'fl
1
1 Color l he µ1:..t.'I with Jµµr,.Jµr1Jtt: LtJIO'
ROTATION ABOUT AN ARBITRARY AXIS IN PLANE
,o·gtion obl«i Y IIXls doc:kwiM 2. Rotate object so that axis of object coincide wit h
any of coordinate axis.
/Ill/
EXA.\lf.PLE OF ROTATION Of Al\J OBJECT ABOUT AN ARBITRARY
A)OS lN A PLANE
0 0
0 cos8 -sln8
0 slnB cose
0 0 0
-sin8 0
MATRIX FOR REPRESENTING
sin8 cose O 0
THREE=DIMENSIONAL ROTATIONS
ABOUT THE X A_XIS, Y A_XIS AND 0 0 1 0
0 0 0
Z AXIS
Example of reflection about an arbitrary axis in plane
Ill//