| 1 |
#+date: \today |
| 2 |
|
| 3 |
#+latex_class: tiet-question-paper |
| 4 |
#+latex_class_options: [11pt] |
| 5 |
#+options: num:nil toc:nil author:nil email:nil |
| 6 |
|
| 7 |
#+latex_header_extra: \hypersetup{% |
| 8 |
#+latex_header_extra: colorlinks,% |
| 9 |
#+latex_header_extra: breaklinks,% |
| 10 |
#+latex_header_extra: urlcolor=[rgb]{0,0.35,0.65},% |
| 11 |
#+latex_header_extra: linkcolor=[rgb]{0,0.35,0.65}% |
| 12 |
#+latex_header_extra: } |
| 13 |
|
| 14 |
#+latex_header_extra: \usepackage{libertinus} |
| 15 |
|
| 16 |
#+latex_header_extra: \instlogo{images/tiet-logo.pdf} |
| 17 |
#+latex_header_extra: \schoolordepartment{% |
| 18 |
#+latex_header_extra: Computer Science \& Engineering Department} |
| 19 |
#+latex_header_extra: \examname{End Semester Examination} |
| 20 |
#+latex_header_extra: \coursecode{UCS505} |
| 21 |
#+latex_header_extra: \coursename{Computer Graphics} |
| 22 |
#+latex_header_extra: \timeduration{3 hours} |
| 23 |
#+latex_header_extra: \maxmarks{45} |
| 24 |
#+latex_header_extra: \faculty{ANG,AMK,HPS,YDS,RGB} |
| 25 |
|
| 26 |
#+latex: \maketitle |
| 27 |
|
| 28 |
*Instructions:* |
| 29 |
1. Attempt any 5 questions; |
| 30 |
2. Attempt all the subparts of a question at one place. |
| 31 |
|
| 32 |
#+latex: \bvrhrule\bvrskipline |
| 33 |
|
| 34 |
1. |
| 35 |
1. Given the control polygon $\textbf{b}_0, |
| 36 |
\textbf{b}_1, \textbf{b}_2, \textbf{b}_3$ of a |
| 37 |
Cubic Bezier curve; determine the vertex |
| 38 |
coordinates for parameter values $\forall t\in |
| 39 |
T$. \hfill [7 marks] |
| 40 |
\begin{align*} |
| 41 |
T \equiv |
| 42 |
& \{0, 0.15, 0.35, 0.5, 0.65, 0.85, 1\} \\ |
| 43 |
\begin{bmatrix} |
| 44 |
\textbf{b}_0 &\textbf{b}_1& \textbf{b}_2& \textbf{b}_3 |
| 45 |
\end{bmatrix} \equiv& \begin{bmatrix} |
| 46 |
1&2&4&3\\ 1&3&3&1 |
| 47 |
\end{bmatrix} |
| 48 |
\end{align*} |
| 49 |
|
| 50 |
2. Explain the role of convex hull in curves. |
| 51 |
\hfill[2 marks] |
| 52 |
|
| 53 |
#+latex: \bvrhrule |
| 54 |
|
| 55 |
#+ATTR_LATEX: :options [resume] |
| 56 |
1. |
| 57 |
1. Describe the continuity conditions for |
| 58 |
curvilinear geometry. \hfill[5 marks] |
| 59 |
2. Define formally, a B-Spline curve. \hfill [2 |
| 60 |
marks] |
| 61 |
3. How is a Bezier curve different from a B-Spline |
| 62 |
curve? \hfill [2 marks] |
| 63 |
|
| 64 |
#+latex: \bvrhrule |
| 65 |
|
| 66 |
#+ATTR_LATEX: :options [resume] |
| 67 |
1. |
| 68 |
1. Given a triangle, with vertices defined by column |
| 69 |
vectors of $P$; find its vertices after |
| 70 |
reflection across XZ plane. \hfill [3 marks] |
| 71 |
\begin{align*} |
| 72 |
P\equiv |
| 73 |
&\begin{bmatrix} |
| 74 |
3&6&5 \\ 4&4&6 \\ 1&2&3 |
| 75 |
\end{bmatrix} |
| 76 |
\end{align*} |
| 77 |
2. Given a pyramid with vertices defined by the |
| 78 |
column vectors of $P$, and an axis of rotation |
| 79 |
$A$ with direction $\textbf{v}$ and passing |
| 80 |
through $\textbf{p}$. Find the coordinates of |
| 81 |
the vertices after rotation about $A$ by an angle |
| 82 |
of $\theta=\pi/4$.\hfill [6 marks] |
| 83 |
\begin{align*} |
| 84 |
P\equiv |
| 85 |
&\begin{bmatrix} |
| 86 |
0&1&0&0 \\ 0&0&1&0 \\0&0&0&1 |
| 87 |
\end{bmatrix} \\ |
| 88 |
\begin{bmatrix} |
| 89 |
\mathbf{v} & \mathbf{p} |
| 90 |
\end{bmatrix}\equiv |
| 91 |
&\begin{bmatrix} |
| 92 |
0&0 \\1&1\\1&0 |
| 93 |
\end{bmatrix} |
| 94 |
\end{align*} |
| 95 |
#+latex: \bvrhrule |
| 96 |
|
| 97 |
#+ATTR_LATEX: :options [resume] |
| 98 |
1. |
| 99 |
1. Explain the two winding number rules for inside |
| 100 |
outside tests. \hfill [4 marks] |
| 101 |
2. Explain the working principle of a CRT. \hfill [5 |
| 102 |
marks] |
| 103 |
|
| 104 |
#+latex: \bvrhrule |
| 105 |
|
| 106 |
#+ATTR_LATEX: :options [resume] |
| 107 |
1. |
| 108 |
1. Given a projection plane $P$ defined by normal |
| 109 |
$\textbf{n}$ and a reference point $\textbf{a}$; |
| 110 |
and the centre of projection as $\mathbf{p}_0$; |
| 111 |
find the perspective projection of the point |
| 112 |
$\textbf{x}$ on $P$. \hfill [5 marks] |
| 113 |
\begin{align*} |
| 114 |
\begin{bmatrix} |
| 115 |
\mathbf{a}&\mathbf{n}&\mathbf{p}_0&\mathbf{x} |
| 116 |
\end{bmatrix}\equiv |
| 117 |
& |
| 118 |
\begin{bmatrix} |
| 119 |
3&-1&1&8\\4&2&1&10\\5&-1&3&6 |
| 120 |
\end{bmatrix} |
| 121 |
\end{align*} |
| 122 |
2. Given a geometry $G$, which is a standard unit |
| 123 |
cube scaled uniformly by half and viewed through |
| 124 |
a Cavelier projection bearing $\theta=\pi/4$ |
| 125 |
wrt. $X$ axis. \hfill [2 marks] |
| 126 |
3. Given a view coordinate system (VCS) with origin |
| 127 |
at $\textbf{p}_v$ and euler angles ZYX as |
| 128 |
$\boldsymbol{\theta}$ wrt. the world coordinate |
| 129 |
system (WCS); find the location $\mathbf{x}_v$ in |
| 130 |
VCS, corresponding to $\textbf{x}_w$ in |
| 131 |
WCS. \hfill [2 marks] |
| 132 |
\begin{align*} |
| 133 |
\begin{bmatrix} |
| 134 |
\mathbf{p}_v & \boldsymbol{\theta} & \mathbf{x}_w |
| 135 |
\end{bmatrix}\equiv |
| 136 |
&\begin{bmatrix} |
| 137 |
5&\pi/3&10\\5&0&10\\0&0&0 |
| 138 |
\end{bmatrix} |
| 139 |
\end{align*} |
| 140 |
|
| 141 |
#+latex: \bvrhrule |
| 142 |
|
| 143 |
#+ATTR_LATEX: :options [resume] |
| 144 |
1. |
| 145 |
1. Describe the visible surface detection problem in |
| 146 |
about 25 words. \hfill [1 mark] |
| 147 |
2. To render a scene with $N$ polygons into a |
| 148 |
display with height $H$; what are the space and |
| 149 |
time complexities respectively of a typical |
| 150 |
image-space method. \hfill [2 marks] |
| 151 |
3. Given a 3D space bounded within $[0\quad0\quad0]$ |
| 152 |
and $[7\quad7\quad-7]$, containing two infinite |
| 153 |
planes each defined by 3 incident points |
| 154 |
$\mathbf{a}_0, \mathbf{a}_1, \mathbf{a}_2$ and |
| 155 |
$\mathbf{b}_0, \mathbf{b}_1, \mathbf{b}_2$ |
| 156 |
respectively bearing colours (RGB) as |
| 157 |
$\mathbf{c}_a$ and $\textbf{c}_b$ respectively. |
| 158 |
\begin{align*} |
| 159 |
\begin{bmatrix} |
| 160 |
\mathbf{a}_0&\mathbf{a}_1&\mathbf{a}_2 |
| 161 |
&\mathbf{b}_0&\mathbf{b}_1&\mathbf{b}_2 |
| 162 |
&\mathbf{c}_a&\mathbf{c}_b |
| 163 |
\end{bmatrix}\equiv |
| 164 |
&\begin{bmatrix} |
| 165 |
1&6&1&6&1&6&1&0 \\ |
| 166 |
1&3&6&6&3&1&0&0 \\ |
| 167 |
-1&-6&-1&-1&-6&-1&0&1 |
| 168 |
\end{bmatrix} |
| 169 |
\end{align*} |
| 170 |
Compute and/ or determine using the depth-buffer |
| 171 |
method, the colour at pixel $\mathbf{x}=(2,4)$ on |
| 172 |
a display resolved into $7\times7$ pixels. The |
| 173 |
projection plane is at $Z=0$, looking at |
| 174 |
$-Z$. \hfill [6 marks] |
| 175 |
|
| 176 |
#+latex: \bvrhrule |
| 177 |
|
| 178 |
|
| 179 |
# Local Variables: |
| 180 |
# org-latex-default-packages-alist: nil |
| 181 |
# org-latex-packages-alist: nil |
| 182 |
# End: |