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