0% found this document useful (0 votes)
16 views6 pages

Lighting Model Math Problem and Solution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views6 pages

Lighting Model Math Problem and Solution

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

BRAC University (Department of

Computer
CSE 423 (Computer Graphics) for Summer 2022 Semester

Quiz 4

Student ID:

Name:
Full Marks: 10 Duration: 30 minutes

[No extra sheet will be provided. Write your answer to the questions in this answer
script.] [Marks allocated to each question is given in the statement of corresponding
question.]
1. A light source with intensity 5 and radius of influence 50 is located at point (2,3,4)
from
which you are called to calculate the illumination of a point on the xy plane. The camera is
set at a point (5,6,3) and the light is reflected back from point (4,4) of the plane. The ambient,
diffuse and specular coefficient is given at 0.2, 0.5, 0.4.
a. For the above phenomenon, represent the reflected ray R in the unit vector. b.
Calculate the specular reflection intensity for a shininess factor of 10.
c. Calculate the attenuation factor for the given point in the above scenario.
3

d. If the ambient light intensity is at 2, calculate the total reflected light intensity at the
given point according to phong's model with the attenuation factor.

(a)
Here.
ነ-
L= (2,3,4) -
(4,4,0)
(-2,-1,4)
3
(‫ط‬
)
(-2i-
jtuu)
√21

î.ĥ
•. Î.‚¿ (-2:-
j†uų). û
√21

·· 2(1.ĥ)ñ =
..

82
बने
·R. 2(L.^)^-^= 2 1- (2:-j+uk)

ū=

17
=

(5,6,3) -
(4,4,1)
(1,2,3) +
(i+2)+34)
√T4

√21 (zi+j+
4k)
20. (++). (i1 2 3û)
√294

16
(2+2 +12)
fait
f. Apks

now,
11

V294

10
16
5X 0'4X
√294

~ox (1-
($)", 0)
мах

= max
d>

(1-(3-
0),0)

(2-4)2+ (3-
4)`+ (4-0)2
4+1+16 VZI

C. tan=
мах
1-
50~

D'9916

1: Jaka t

Ja ka + Ip fatt (kj mar


(Liñ,0)+
ks (max (J.
F, 0))",
7

2X 02+ 5X 0·9916


Y
D'SX 1/2 +
0·4x

04X
(141
9))
(Ans.)

You might also like