CG Question Banka
CG Question Banka
Dept. : CSD
St. Peter’s Engineering College (Autonomous)
Dullapally (P), Medchal, Hyderabad – 500100. Academic Year
QUESTION BANK 2024-25
Subject Code : AS22-74PC03 Subject : COMPUTER GRAPHICS
Class/Section : B. Tech. Year : III CSD Semester : 1
BLOOMS LEVEL
Remember L1 Understand L2 Apply L3
==Analyze L4 Evaluate L5 Create L6
*****
e)Define workstations.
Workstations are high-performance computers that are
designed to support heavy workloads and are typically used
in professional settings such as studios, design firms, and
research labs. They often have powerful processors, lots of 1M L1 C312.1
RAM, and dedicated graphics cards to support the
demanding needs of graphics-intensive applications.
Presentation Graphics
To produce illustrations that summarize
various kinds of data. Except 2D, 3D graphics
are good tools for reporting more complex
data. L2 C312.1
Computer Art
Painting packages are available. With
cordless, pressure-sensitive stylus, artists can
produce electronic paintings which simulate
different brush strokes, brush widths, and
colors. Photorealistic techniques, morphing
and animations are very useful in commercial
art. For films, 24 frames per second are
required. For video monitor, 30 frames per
secondare required.
Entertainment
Motion pictures, Music videos, and TV shows, Computer
games
A: Raster-Scan L2 C312.1
Advantages:
Raster-Scan
The electron beam is swept across the screen one
row at a time from top to bottom. As it moves
across each row, the beam intensity is turned on
and off to create a pattern of illuminated spots.
This scanning process is called refreshing. Each
complete scanning of a screen is normally called
a frame.
1. Realistic image
2. Million Different colors to be generated
3. Shadow Scenes are possible.
Disadvantages:
1. Low Resolution
2. Expensive
3.
Advantages:
Disadvantages:
10.
Y0 = R
Step-2:
Calculate the value of initial decision parameter PK as
SR 22
Pk=1-R
Step-3:
i)Suppose the current point is (Xk, Yk) and the next point is (Xk+1,
Yk+1).
ii)Find the next point of the first octant depending on the value of
decision parameter Pk.
Follow the below two cases:
Step-04:
If the given centre point (X0, Y0) is not (0, 0), then do the following
and plot the point-
Xplot = Xc + X0
Yplot = Yc + Y0
Step-05:
Step-06:
1)Take the input and ellipse centre and obtain the first
point on an ellipse centered on the origin as a (x,y 0)=
(0,ry).
2)Now calculate the initial decision parameter in region
1 as:
p10=ry2+1/4rx2-rx2ry
3)At each xk position in region 1 perform the following
task. If p1k<0 then the next point along the ellipse
centered on (0,0) is (xk+1,yk).
i.e. p1k+1=p1k+2 ry2xk+1+ry2
Otherwise, the next point along the circle is (xk+1,yk -1)
i.e. p1k+1=p1k+2ry2xk+1 – 2rx2yk+1+ry2
4)Now, again calculate the initial value in region 2 using
the last point (x0,y0) calculated in a region 1 as
: p20=ry2(x0+1/2)2+rx2(y0-1)2-rx2ry2
5)At each yk position in region 2 starting at k
=0 perform the following task. If p2k<0 the next point
along the ellipse centered on (0,0) is (xk , yk-1)
i.e. p2k+1=p2k-2rx2yk+1+rx2
Otherwise the next point along the circle will
be (xk+1,yk -1)
i.e. p2k+1 =p2k+2ry2 xk+1 -2rx2yk+1+rx2
6)Now determine the symmetric points in another three
quadrants.
7)Plot the coordinate value as: x=x+xc , y=y+yc
8)Repeat the steps for region 1 until 2ry2 x>=2rx2y.
Advantages:
The Midpoint Ellipse Algorithm is widely used in
computer graphics due to its:-
SR 22
1M L1 C312.2
L2 C312.2
3M L1 C312.2
Line Clipping The concept of line clipping is same as point
clipping. In line clipping, we will cut the portion of line which is
outside of window and keep only the portion that is inside the
window.
OR
P’ = P . S
Where S is the scaling matrix.
Translation:
1) 2-d Translation is a process of moving an object
from one position to another in a two dimensional
plane.
2) You can translate a point in 2D by adding
translation coordinate (tx, ty) to the original
coordinate (X, Y) to get the new coordinate (X’,
Y’).
SR 22
Reflection:
Reflection is the mirror image of original object.
In other words, we can say that it is a rotation
operation with 180°.
In reflection transformation, the size of the object
does not change.
The following figures show reflections with
respect to X and Y axes, and about the origin
respectively.
Shear transformations:
A transformation that slants the shape of an object
is called the shear transformation.
There are two shear transformations X-Shear and
YShear.
One shifts X coordinates values and other shifts Y
coordinate values. However; in both the cases only
one coordinate changes its coordinates and other
preserves its values.
Shearing is also termed as Skewing.
SR 22
L4 C312.2
SR 22
accordingly.
L4 C312.2
SR 22
L4 C312.3
L2 C312.3
SR 22
L2 C312.3
SR 22
SR 22
Bezier Curves:
1)Bezier curve is discovered by the French
engineer Pierre Bézier.
4)In the B-spline curve, the control points impart local control
over the curve-shape rather than the global control like Bezier-
curve.
You can see in the above figure that only the segment-1st shape as
we have only changed the control point P1, and the shape of
segment-2nd remains intact.
5) B-splines curves are independent of the number of control
points and made up of joining the several segments smoothly,
where each segment shape is decided by some specific control
points that come in that region of segment. Consider a curve given
below –
SR 22
L4 C312.3
Phong Shading
It is more accurate method of polygon rendering. At each point of
the surface, it interpolates the normal vector and applies the
illumination model. It is also called as normal vector interpolation
shading. It gives more real highlights of the surface. It reduces
match bands.
UNIT – IV
a)what is meant by translation in 3-D geometric
transformations.
A: Translation It is the movement of an object from one position to
another position. Translation is done using translation vectors.
1 There are three vectors in 3D instead of two. 1M L2 C312.4
These vectors are in x, y, and z directions.
Translation in the x-direction is represented using Tx. The
translation is y-direction is represented using Ty. The translation in
the z- direction is represented using Tz.
b)what is meant by Rotation in 3-D geometric transformations.
Rotation in 3-D refers to the process of rotating an object in
three-dimensional space around a specified axis. Here are some
key concepts related to 3-D rotation:
1. Axes of Rotation
1M L2 C312.4
X-axis: Rotation around the horizontal axis.
Y-axis: Rotation around the vertical axis.
Z-axis: Rotation around the depth axis (out of the
plane).
3)
b)Write a short notes on viewing coordinates. 3M
L4 C312.4
Scaling:
Scaling in 3-D refers to the transformation that alters the size of
an object in three-dimensional space without changing its shape.
This transformation can make an object larger or smaller by
SR 22
L2 C312.4
SR 22
L3 C312.4
L3 C312.4
Parallel Projection:
A parallel projection is formed by extending
parallel lines from each vertex of object until
they intersect plane of screen. Parallel
projection transforms object to the view plane
along parallel lines. A projection is said to be
parallel, if center of projection is at an infinite
Scaling:
Scaling in 3-D refers to the transformation that alters the size of
an object in three-dimensional space without changing its shape.
This transformation can make an object larger or smaller by
SR 22
s
SR 22
and CMYK.
The set of primaries is generally referred to as
the XYZ or (X, Y, Z) color model where X, Y
and Z represent vectors in a 3D, additive color
space.
from the viewer or not. If it does so, discard it for the current frame
and move onto the next one. Each surface has a normal vector.
3) If this normal vector is pointing in the direction of the center of
projection, then it is a front face and can be seen by the viewer.
4) If this normal vector is pointing away from the center of
projection, then it is a back face and can not be seen by the viewer.
5)Recalling the polygon surface equation :
Ax + By + Cz + D < 0
While determining whether a surface is back-face or front face,
also consider the viewing direction. The normal of the surface is
given by :
N = (A, B, C)
A polygon is a back face if V view.N > 0. But it should be kept in
mind that after application of the viewing transformation, viewer is
looking down the negative Z-axis. Therefore, a polygon is back
face if :
(0, 0, -1).N > 0
or if C < 0
Viewer will also be unable to see surface with C = 0, therefore,
identifying a polygon surface as a back face if : C <= 0.
7)Algorithm
Step-1 − Set the buffer values −
Depthbuffer x,y = 0
Framebuffer x,y = background color
Step-2 − Process each polygon Oneatatime
For each projected x,y pixel position of a polygon, calculate depth
z.
If Z > depthbuffer x,y
Compute surface color,
set depthbuffer x,y = z,
framebuffer x,y = surfacecolor x,y
8)Advantages
It is easy to implement.
Advantages:
Standardized color space: The XYZ color model
is a standardized color space, which can be sensed
by a color sensor.
Basis for other color spaces: The XYZ color
model was one of the first color spaces based on
human color perception, and it's the basis for many
other color spaces.
Disadvantages :
Color transformations: Color transformations
between color spaces can be imperfect, especially if
the target color space doesn't cover all the colors in
the source space.
Limited resolution: Color coordinates are often
stored with limited resolution, which can lead to
rounding errors during transformations.
Any color can be represented with just the x and y amounts. The
parameters x and y are called the chromaticity values because they
depend only on hue and purity.
Advantages:
Standardized color space: The XYZ color model
is a standardized color space, which can be sensed
by a color sensor.
Basis for other color spaces: The XYZ color
model was one of the first color spaces based on
human color perception, and it's the basis for many
other color spaces.
Disadvantages :
Color transformations: Color transformations
between color spaces can be imperfect, especially if
the target color space doesn't cover all the colors in
the source space.
Limited resolution: Color coordinates are often
stored with limited resolution, which can lead to
rounding errors during transformations.
SR 22
Note: that the top row is identical to that of the YUV color space
L2 C312.5
7)As with the XYZ color system, the RGB color scheme is an
additive model.
Intensities of the primary colors are added to produce other colors.
Each color point within the bounds of the cube can be represented
as the triple (R, G, B), where values for R, G, and B are assigned in
the range from 0 to 1.
c)Explain BSP tree methods and area sub-division methods. 10M L2 C312.5
SR 22
Disadvantage of BSP
Generating a BSP tree can be time-consuming.
Classification of Scheme
It divides or classifies polygons in four categories:
1. Inside surface
2. Outside surface
3. Overlapping surface
4. Surrounding surface
1. Inside surface: It is surface which is completely inside the
surrounding window panel or specified boundary as shown
in below figure.
SR 22