Confirming your payment

Skip to content

Sign up now and get .

Competency-Based Questions (CBQ) · Question 20 of 40

Competency: Application A computer-graphics program shades each flat face of an object using the rule brightness = 255…

Question 203 marksMedium

Competency: Application

A computer-graphics program shades each flat face of an object using the rule

brightness=255×max⁡(0, n^⋅L^)\text{brightness} = 255 \times \max\left(0,\ \hat{n} \cdot \hat{L}\right)

where n^\hat{n} is the face's outward unit normal and L^=13(i^+2j^+2k^)\hat{L} = \dfrac{1}{3}(\hat{i} + 2\hat{j} + 2\hat{k}) is the unit vector from the object towards the lamp; 255 is the brightest possible value and 0 is black. Three faces have normals n^1=k^\hat{n}_1 = \hat{k}, n^2=15(4j^+3k^)\hat{n}_2 = \dfrac{1}{5}(4\hat{j} + 3\hat{k}) and n^3=−15(3i^+4j^)\hat{n}_3 = -\dfrac{1}{5}(3\hat{i} + 4\hat{j}). (Hypothetical data.)

(a) Find the brightness of face 1.

(b) Find the brightness of face 2 and say which of faces 1 and 2 looks brighter.

(c) Show that face 3 is drawn black, and explain this in terms of the angle between n^3\hat{n}_3 and L^\hat{L}.