Confirming your payment

Skip to content

Sign up now and get .

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

Competency: Application In a 3D game, a camera sits at the origin.

Question 163 marksMedium

Competency: Application

In a 3D game, a camera sits at the origin. It uses its own axes along the unit vectors

u^=13(2i^+2j^−k^),v^=13(2i^−j^+2k^),w^=13(−i^+2j^+2k^)\hat{u} = \frac{1}{3}(2\hat{i} + 2\hat{j} - \hat{k}), \quad \hat{v} = \frac{1}{3}(2\hat{i} - \hat{j} + 2\hat{k}), \quad \hat{w} = \frac{1}{3}(-\hat{i} + 2\hat{j} + 2\hat{k})

and it looks along w^\hat{w}. The camera coordinates of a point with position vector p⃗\vec{p} are (p⃗⋅u^, p⃗⋅v^, p⃗⋅w^)(\vec{p} \cdot \hat{u},\ \vec{p} \cdot \hat{v},\ \vec{p} \cdot \hat{w}). (Hypothetical data.)

(a) Show that u^\hat{u}, v^\hat{v}, w^\hat{w} are mutually perpendicular.

(b) Find the camera coordinates of a tree at p⃗=6i^+3j^+3k^\vec{p} = 6\hat{i} + 3\hat{j} + 3\hat{k}, and check that they give the same distance from the camera.

(c) An object is at q⃗=3i^−3j^+3k^\vec{q} = 3\hat{i} - 3\hat{j} + 3\hat{k}. Is it in front of the camera or behind it?