Professional Documents
Culture Documents
Adobe Scan 06 Nov 2023
Adobe Scan 06 Nov 2023
T=
0
1 00
1
0
0 0
1 0
01
P'=P.T Z-axis
S=($SS)
X-axis
R sin
1
0 cos
0
0
0
0
1
follo1.ws: Get
the
volume spline curves are as
2. Get sample points.
intermediate values of uto determine
3. Rotation :
y-axis
intermediate points.
3. Calculate
blending
For 3D rotation we need to
rotation about which the object isspecify
middle section of thefunction
curve.
values for
stot be the axis of 4. Calculate blending function values for first
|I 0 0 0 with the angle of rotation
3D transformation matrix
rotated along section of the curve.
(x y z 1]=[x y z 1]| 0 1 0 0 for each 5. Calculate blending function values for the
coordinatecoordinate
0 0 1 0 rotation with homogeneous are giyenaxiaes
last section of the curve.
follows: Z-axis X-axis 6. Multiply the sample points by blending
x ly tz 1| Rotation about y-axis functions to give points on approximation
cos sin 9 00 4, Reflection : cUrve.
[x+t, ytty z+t, 1) - sin 0 cos0 0 0 7. Connect the neighbouring points using
In this transformation, an object is R, = Consider point P(x, y, z). The reflection of this
3D by transforming each vertex of thetranslated straight line segments.
in
L 00 point with respect to xy plane is given by point P(x 8. Stop.
object. y -z), as shown in figure. Corresponding to this
y"axis 00
reflection. the transformation matrix can be given 06(a), Explain interactive picture
P(×, y, 2) construction techniques in detail.
y-axis Ans. The various interactive picture construction
T=(Lyibyb) [1 0 01
M=<0 1 0
technique are as follows:
1. Basie Positioning Methods : Coordinate
0 0 - values supplied by locator input are often used with
positioning methods to specify a locator for
Z-axis displaying an object or acharacter string, Coordinate
X-axis positions are selected interactively with apointing
2. Scaling Z-axis X-axis P%, y, 2)
A scaling of an device, usually by positioning the screen cursor.
Rotation about z-axis
fixed position can beobject with respect to selected
(x,y,0)4
representedwith the following
transformation sequence : The positive value of angle indicates
(a) Translate the fixed point to
the origin.
counterclockwise rotation. For clockwise rotation P(x, y, -z)
(b) Scale the object. value of angle is negative. Dalection with respect to xy
plane
BCA Vth Semester/ Computer
Graphics &Animation //2018-19 / I1143
Graphics &Anímation/
BCA Vth Semester /Computer
id
inerscction
poin.
5. Data
2018-19/ 115
virtual Glove It:The data glove is
Exampie:Mouse can selecttthe screen position which can be taken as centre of string
start orend of string Osition. For drawing atrue segment
positions as two end oints of the line as shown in figure.
can be used to selert
mouse posittWioon, or the a
object.
sensors that detect handconstandructed with aseriesgraspof
is used to
sCre n sensor is ashort length of finger motions. Each
2.
first
endpoint
selection
Second end point
selection lphotighto-etrmiansit sintogr atdiodethe other(LED)fiberend.atopticonecable,end withand aa
Rubber Band Technique: Thisstechnique allows the userto try out different ine glove can be used to The input from the
positions
setting a final one. In this, we first select ascreen position for one endpoint or the iine. Then, as tho before
moves around, the detted line is displayed|from the start position to the current position of
Explainaboutinteractiveinput and
USoeb),tdevices in detail.
ina virtual scene. position or manipulate objects
When we finally select a second screen position, the other line endpoints is set. the curSOr. utputvarioussinteractive input and output devices
s The eastolloWS: 6.Digitizer/Graphical
such as tracing we need aTablet:For applications
or a graphical device called adigitizer
: tablet. It consists
Interactive Input Devices ranging in size from about 6by 6of aflat surface,
lariousdevices are available for data input on 72
inches or more, which can detectinches upto 48 by
the position of
raphicworkstations. Most systems have a amovable stylus.
(a) Click button to (b) As the cursor mOvcs (c) Line follows the
(d) Cursor no keyboard and one or more additional devices 7. Image
Scanners : The scanner is device,
select first line with button down a cursor position until control the longer
line eciallydesigned foriinteractive input. which can be
endpoint dotted liñe Stretches the second endpoint used to store drawing, graphs,
out from a initial point is selected by
These include keyboard, mouse, trackbal. or text available in photos
printed form for computer
paceball,joystick,,digitizers, Scanners and so on.
Rubberband Line Drawinge Teleasing the button processing. The scanners use the optical scanning
. Keyboard: Keyboard isa primary input device mechanism to scan the information. The scanner
3. Dragging: In this technique, first image is selected then it is
moved in the direction of the oranygraphics system. It is used for entering text records the gradation of gray scales or
colour and
i position by creonumbers,
that the selected object follows the cursor path. Moving the object to the i.e. on graphics data associated with Stores them in the array.
desired Finally, it stores theimage
cursor path is known as dragging.
4. Constraints : Aconstraint is a nule for
altering input
followingtheictures2.
;such as labels x-y coordinates etc.
Mouse :A mouse is a palm-sized box used to
information in a specific file format such as JPEG
GIP, TIFF, BMP &so on.
orientation or alignment of the displayed coordinates. Many coordinate values to produce a shecifoition the screen cursor. It
consists of ball on the 8. Touch Panels : The touch panels are the
certain constraints. There are many kinds of constraint graphics packages support functions with hottcm connected to wheels or rollers to provide ransparent devices which are fitted on the sereen.
common constraintis a horizontal or vertical aiignment of functions
straight
that can be specified, but the mo
lines. With this the amount and direction of movement. One, tyo hey consist of touch sensing mechanism. Touch
without worrying about accurate specificationconstraint
to draw horizontal and vertical lines itis nosiki.hree buttons are uSually included on the top of pu Can be revodea using
coordinates. of second endnointbe mouse for opaea, eieeeal or
signaling the execution of
-Line duc to horizontal Oneration. somet
9. Light Pens :Light pen is apencil shaped device
constraint 3. Trackball and Spaceball :The trackballis a rom
used topoints
select onposiions by detecting the light coming
Line in normal case w0-dimensional positioning device, whereas the CRT screen. It consists of a
paccball provides six degree of freedom. It does photoeiectric cell housed ina pencil like case.
First endpoint Second end point with not actually move. It consists of straingauges which II. Interactive Output Devices :
appropriate position measures the amount of pressure applied to the The output devices can be classified as display
Horizontcal Line Constraint spaceball to provide input for spatial positioningand devices and hardcopy evices. Some of them are
Line in normal case orientation as the ball is pushed or pulled in various as follows:
direction. 1. CRT (Cathode Ray Tube) : CRT is an
lever evacuated glass tube. An electron gun at the rear
anfgntgGith Line due to vertical
constraint 4.Joystick:Ajoystick has asmall, vertical
onthe. base and used to of the tube
produces a beam of electrons which is
(called the stick): mounted
Vertical Line Constraint Cursoraround. It consists of two directed towards the frontof the tube (screen). The
5. Grid: Grid is a stcer the screen
potentiometers attachedto a single lever. Moving inner side of the screen is coated with phosphor
horizontal
positions. When agrid is and vertical lines displaved on the
screen to settingsontheepotentiometers. substance which gives off light when it is stroked
Iheleverchangesthemovements is indicated by one by
grid lines. Below figure used, any input coordinate position is rounded to the guide user to select screen
The left or right electrons.
shows line drawing
positions are automaticaily shiftedto the with a grid. The line nearest intersection of two forward or back movement is
Potentiometer andpotentiometer 2. Printer: Printer is an output device, which is
nearest grid intersection point,endpoints masked with
and the line is drawn twO CUrsor indicated by other used to print information on paper. There are two
betweentO
BCA VIh Semester/ Computer
BCA Vh Semester j Computer Graphics &Animation /2018-19/118 Graphics &Animation
workstation. /2018-19 /I 117
types of printer epretation tothe from
Marker, which
Lmpact printers print the characters by striking specifies Polymaker TEXT entertaiinntmenterfacesto traiarening. Multimedia
charandactoneers tto ofbe ufseivde software
them on the ribbon, which is then standardized symmetric Polslines
* This is a TEXT
for the market. The five
pressed on the
collasoftware between creativoften
boration engineers.
+
paper. done
Noa impact printers
using the i! i. Iheseprint the characters
page at a tine,
without
printers print a complete
thus thev are also called as Page
dot, plus, asterisk,,circle
Polymarker colorrindex,
color the marker is.
Marker size scale
i
factor, which
characstpeericsitfiicess
cross. are
which n
what
X
onemore
6.
and
Industry :In
used as away toindust
e professi
rial sector, multimedia
help represent
or
printers.
3. Graphic Plotter:The
large each
is marker (except controls how shareholders, superiors, and coworkers. informatItion
plotter is a computer marker).
printer for printing vector graphic plotters draw (c) Text : The GKS for the dot intraining empl oyes,
product all over the advertisement and sellir
hel
pictures on paper using a pen. It is used in draw atext string at a text function position. CellArea based technologies. world via unlimited wet
applications such as computer aided design. specified o allows FillArea
4. Speakers : Multimedia speakers are
sold for use which computers, although speakers
The attributes that control
are : the icoorappeardinataence you to
of tey
Examples ofGKS Output Primitives
this,
7.
Mathematical and
it is mainly used Scientific Research : I
Qb).Explain multimedia applications in 8. Medicine: In medicine, formodel ing canand simulation
capable of other audio uses e.g. for an MP3usually Text font and precision
doctors
player. Character height detail. by looking at a virtual surgery or gettheytrained
Q7(a). Explain GKS primitive in detail. Character expansion factor Ans. Amultimedia application is an application simulate how the human can
diseases spread by virusesbody
Character up vector which uses a collection of multiplemedia sources is affected by
Ans. GKS (Graphical Kernel and bacterias and
System) :
GKS primitives provides 6 primitives. Character spacing example,text, graphics, images, sound / audio, then develop
GKS
contains functions for drawing lines, markers, filled Text path orientation and/or video. 9. Public Places:techniques to prevent it.
It is used to
areas, text and a function for representing Text color index It has its application in almost every field in hotels, raiBway station,provide information
images in adevice independent manner. Inrasterlike Text alignment dvertisement, art, education, entertainment. museums and grocery stores.
shopping malls,
to these basic function, GKS addition (d) FillArea : The
GKS fill engineering, medicine, mathematics, business.
for changing the appearance ofcontains
the
many function us to specity a polygonal shapeareaoffunct ion allows
tot ciAefew research and spatial, temporal applications.
ntitiomultimedia Q8. Explain any three terms :
such as changing colors, changingoutput primitives,
line thicknesses,
filled with various interior styles. The an area
attribut x applications are as follows: (a) Tweaking.
changingmarker types and sizes etc. The controls the appearance of fill areas are : 1.Creative Industries : Creative industries uses (b) Morphing
ior changing the appearance of the functions Fillarea interior style multimedia for variety of purposes ranging trom
(c) RGB Colour model
drawing functions (output fundamental Fill area style index (d) Types of anímation system
attribute setting functions. primitives) are called Fill area color index fine arts, to journalism, to software servies.
(e) Cell Array : The- 2. Commercial : Industrial, busines to busines, Ans. (a) Tiweaking :
The various GKS primitive are as Tweaking is the process of fine tuning complex
(a) Polylines : The follows: GKS
displays rasterlike images in a cell array function
and interoffice communications are often
devices, typically electronic devices. In simple words,
GKS function for drawing
function deitakes
ce-ithendependent developed by creative services firms for it is amethod for making small changes to fine tune
line segments is called Polyline. manner. The cell array advanced multimedia presentation.
takes an Apolyline function
array ofX-Y coordinates and points of a rectangle that we
two come hardware or software. Sometimes, tweaking can
3. Entertainment : Multimedia is used heav1 also refer to slightly
segments draws line division (M) in specify, a number of altering the values of underlying
control the connecting them. The attributes that the X direction and a in entertainment industry especially to develop
divisions (N) in the Y directions. number of elaoes So that the actual result of a program
appearance of polylineare: It then partitions special effects in movies and animations. There coincides with the desired outcome. Inthis situation,
the
Linetype, which controls whether the polyline We rectangle into MxNsub rectangles called cels. exists yarious multimedia games. multd tweaking may not be the best thing, as it weakens
is drawn as a solid,
dotted line. dashed, dotted, or dash- arrayassign each cella color and create the final cell applications that allow users to passiveythe progran's integrity.
coloring each participate instead of just being
color. At level OA,individual
cell with its assigned (called interactive Hardware tweaking involves adjusting specific
Line width, scale factor, cell array has no associated recipients of information parts of the hardware to get optimum results.
thick the line is. which controls how attributes. multimedia). Example :Tweaking activities migtt include replacing
Multimedia is used to produce cables, over clocking the CPU, modifying thejumper
Polyline color index, which controls what () GDP (Generalized Drawing Primitive) : +. Education : courses (CBT's) and
color the line is. GKS addresses special computer based training It also Setting etc.
books like encyclopedia.
(b) of a workstation,geometrical
such as oupu
reference Software tweaking is a method of enhancing the
allowsPolymarker:The polymarker function ofcapabilities
GKS provideeducation, an1informal termto describe functionality ofan application or in1proving the quality
us to draw
marker symbols spline curve, circular arcs, and thear drawing combinationofeeducation and entertainment.
centered at objects are
coordinate points that we specify. The attributes elliptie Engineering: Software engineers uses
ofits end result. This can be done manually or with
that points and characterized by an identifier, a set
o
control the appearance of 5. multimediain computer simulations1s for anything the help of aspecialized tweaking software program.
polymarker are : additional data. GKS
transformations to the point but appile leaves th
BCA Vh Semester /Computer
Graphics & Animation/ 2018-19/ 118
Ans. (b)
Morphing Morphing :
is an etfect in
into another.
tools offeringMorphing
the morphing
which one image changes
applications and modeling
onty between still images, buteffect can transition
Green (0, 1,0) Year- 2019-20
Computer Graphics And Animation
images as well. often between not
moving Yell1,0)
(1, ow
Morphing is
1. Fist of applied as follows :
Cyan
(0, 1, 1)| Black White Time: Three Hoursl BCA N-501
all, two (0, 0, 0)
final) are suppliedimages
to the
(one initial and other RedR
Note : Attempt any Five questions.
ThisSsolution is
provided by Miss.
All questions carry
Hema Kashyap equal marks. IMaximum Marks :70
2. The
morphing morphing application.
on both application selects
the images. Setting of
key points Blue (1,0,0) QL(a). What are the
crucial for smooth key points is
transition between two B (0, 0, 1) Magenta
(1,0, 1)
elements of
Elements of Computer Graphicscomputer graphics?
3.
images. The RGB Cube Gray Scale Interact1vee computer graphics
:
consists of three
ofTransformations Using these components, components
are applied on the key Ans. (d) Types of Animation namely digital memory buffer, TV
first image to
change it to the points The various types of Systenm : snd display controller. we are able to
see the monitor
key point of second
image (the
points, the smoother the morph).
corresponding
more the key follows: animation system are as
ls (picture elements). Following is the
Neital explanation
Memory Buffer: This is the place where of these componentsoutput:
on the screen in form of
Object
View plane
’Xw
Zy
(a) Original Position
(b) Translation (c)3 axes rotation
axes using a sequence of translate - rotate Parallel Projection of an Object to the Vier Plane
Aligning of viewing and world coordinate
transformation
Parallel projections are basically categorized into two types, depending onthe relation between the
direction of projection: and the normal to the view plane.
Therefore, the composite transformation matrix is given as
I =T-R7 Ry ·R, Ithographic projection : When the direction of the projection is normal (perpendicular) to the
view plane, we have an orthographic parallel projection.
There is another way to generate composite rotation matrix. Acomposite rotation: matrix can bee OHiaue parallel projection : An oblique projection is obtained by projectingpoints along parallel
generated by calculating unit u, v, nvectors. If we know Nand Vvectors, the units
as
direcly
vectors are calculated lines that are not perpendicular to the projection plane.
2. Perspective Projection :
N In perspective projection, on the other hand, produces realistic views but does not preserve relative
n= =(41,12, n3) oronortions. In perspective projection, the lines ofprojection are not parallel. Instead, they all converge at
|N
Vxn asingle point called the centre of projection or projection reference point. The object positions are
|VxNI
=(u|,u2, u3) transformed to the view plane along these converged projection lines and the projected view of an object
is determined by calculating the intersection of the converged projection lines with the view plane.
V=nxs=(V|,V2, V3)
This method of generating composite rotation matrix automatically adjusts the direction ofV so that V
is perpendicular to n. The composite rotation matrix for the viewing transformation is given as View plane
01
Object
VË n
0
Converged
projection line
Center of
R=
projection
u3 V3 n3 0
Two important characteristics of perspective projection are :lengths and objects seems small from the
foreshortening,
l. Perspective foreshortening : Due to
This transforms uonto the world x,, ax1s, v onto the y,, axis and nonto the z,, centre of projection.
axis. Furthermore, this as a side effect of the perspective projection.
matrix automatically performs the reflection necessary to transform a left handed viewing system onto 2. Vanishing pcint: Vanishing point is considered projection is of thre types:
the right handed world system. perspective
Based on the number of vanishing points, the single-point perspective projection, there willbe only
Single-point perspective projection : In
Q4. What is projection ? Describe various types of (a) one vanishing point.a
Ans. Projection : projections in detail. double-point perspective projection there will be couple
perspective projectionn: Inwhile other Y° direction.
After converting the description of objects from world (b) Double-pointpoints. One in 'X° direction
project the three coordinates to viewing coordinates, we of vanishing projection: In triple-point perspective projection, there will be triple
dimensional objects ontothe two dimensional
projecting objects onto the view plane. view plane. There are two basic waysof (c) Triple-point
perspective
X'
in
direction another in'Y: direction and third point will be two
directions.
vanishing pointonein
1. Parallel Projection
In parallel projection, z-coordinate is
discarded and parallel lines from each yertex on the object are
extended until they intersect the view plane.
connect the projected vertices by line The point of
intersection is the projection ofthethevertexoriginalWe
segments which corresponds to the connections on
BCA Vth Semester /
BCA Vh Semester IComputer Graphics &
Animation /2019-20/ 12 /Computer Graphics &
about the Animation / 2019-20 / 125
Q5.
Prove that two scaling the image is displayed. The
resolution is Q7.
Writein detail
(a)Tweening following:
(b) Morphing
transformations is commutative in nature measured in DPI (Dot per inch)
appearrsmaller on a device with a An
higherimageusualwiy l
i.e, SS,= S,S1 Tweening:
Ans(a) shorttforin-betweening, is the
Ans. The scaling matrix S is given as than on one with a lower resolution
senough bitrsesoperlution
Tweening,
appearance that:tthe first process generating
of
ogivethebetween the key frames image intointhe
termediate frames between two images
For colorimages, one needs
0
to represent allthe colors in the
evolves smoothly
which help to create the second image. In-betweens are the
theimdepth
age. The pixel drawings
0 S, ofthe bits per pixels is calledi inalltypesofaanimation, including computer animation. illusion of motior.
We have
mumber Tweening is akey process
Steps in Animation Sequence :
The various steps involved in animation
are as follows :
cftheimage. Theconceptof tweening issimply: moving apoint (or aseries of
position. The equation forrtweening along a
straight line is alinear points)
inte
from its initial position to afinal
rpolation.
0
Syz (a) Storyb0ard
drawing an outlinelayout:The
\sequence
storyboard layoutis
d
| P=A([-t) +Bt
0stsi
and S
0 Sy. 0 Sy1
of the action,
sequence of sketches having theIt is ahigh
where,
A ’ initial location of he point
level
SS
ideas ofthe animation.) It
as a settof
basic sequencedefines structures
the motion 1 and B ’ final position of the point
standsforIigital Differential
Analyzer..Now computer graphics,
I. Video
takes
Video
continuous
Animation
motion and breaks it Animation starts with independent pDAwtythis
name:
positions and
transfobject,
position, object, to shape ormattoionchangeare used to
up into discrete
frames. put them together to form fhe pictures and that slope
know of a straight line is given as viewed. even to change how sometvihienwig nisg
2. A video is a live
recorded motion picture.
continuous motion.
An animnation is an animated il usion of
We
Ay Y2-Y1
.(1) beTwo-imensional geometric transformations can
3. Videos are
etc. It is not referred to the live
made by video cameras. The real Animation involves drawing recordino dra win g cartoon
m=
Ax X2-X1
above differential equation can be used to sequences of
expressed as 3 x3
matrix operators, so that
movement of objects are captured by objects.
shooting the videos.
Of
sketches of The a, rasterized straight line. For any
obtain given x intoa single tr ansformat
composi te ions can be concatenated
matrix.
4. Video has higher Ax along a line, we can compute the
The basic geometric
quality rate as frames per Animation involves or it has interval
second than animation. of frames per second than a lower
video. quality rate corTesponding yr interval Ay from equation (1) as Translation, Scaling, Rotation, transformations andare
Shearing. The two-dimensional Reflection
Q3(a). What is Frame
and color of display Buffer Discuss the role of frame buffer in
? Ay=.y2Ax operational ethics provides the abovestructure in its
Ans. Frame Buffer : devices? controlling intensity 2) transformation. mentioned
1,
The frame buffer is a bit-map that Gimilarly, we can obtain the x interval Ax
Translation moves an object in a straight line
defines the number of distinct colors in contains among other things the color depth or path from one position to änother:
The portion of memory reserved for the graphics subsystem.
bit corresponding to aspecified Ay as
depth which 2. Rotation moves an object from one position to
called the frame buffer. holding the bit-mapped image that is sent to another inacircular patharound aspecified pivot
Typically the frame buffer is stored on the video
the display
device is Ax = X2-X1-Ay
..3) point or about an origin.
y2 - y1 3. Scaling changes the
chipset is integrated into the motherboard, and the adapter's memory chips. In some cases, the vi dimension of an object
Role of Frame Buffer in frame buffer is stored in main memory. Once the interval we know the values for the next relative to aspecified fixed point.
> Frame buffer holds theControlling Intensity and Color of Display Devices : Xand next y. Besides these transformations,
two-dimensional
set of
are retrieved from frame intensity values for all the screen points. The stored
On the straight line can be obtained as follows: structure also provides reflections and shears.
buffer and displayed on the screen on row
Each screen point is referred intensity
(scan line) at atime values 4. Reflections are transformations that rotate an
to as pixel or pel Xi+1 =XË+ Ax object, 180°about areflection axis.
the screen can be (shortened forms of picture element). Each
specified by its row and column pixel on 5. Shear transformation distort the shape of an
number we can specify the pixel position on the number. Thus by specifying row and column
Intensity range for pixel
black and white system orpositions
screen.
depends on the capacity of the raster system. It and
=X;+.
X2-1Ay
Y2-Y1
4) object by shifting z or y coordinate values by
an amount proportional to the coordinate
colour system. In a simple
is either on 'or off, so only one can be asimple Yi+|=yi +Ay distance fom a shear reference line.
> Additional bits are bit per pixel is needed toblack and white system, each pixel position =y; +2MAK Two- dimensional geometric transformations
control the
> Upto 24 bits per required when color and intensity variations canintensity of the pixel positions. .5) are affine transformations. They can be
be displayed. X2 -X
pixel are included in high quality expressed as a linear function of coordinates
megabytes of storage display
On a blacksystems, which can require several
pixel, the frame bufferspace for the frame The equation (4) and (5) represents arecursive x and y.
is commonly called buffer.
bit
and white system with one bit per relation for sucçessive, value of xand yalong the (For More Information Please Refer 02
frame buffer is often referred as a map. For systems with multiple bits per pixels, the Tequired line. Sucha way arasterizing aline is called
pix map. &03 Unit-II Page-50, 51]
Q3(b). Explain the limitation of DDA adigital diferential analyzer (DDA).
abbreviation DDA.
Ans. Limnitations of
aigorithm for line generation, Expand the Q4. What is 2D Transformation ? Explain 5a). What is Aliasing ? Define
Antialiasing techniques.
DDA Ypes of 2D transformations.
1. Floating point Algorithm
arithmetic in DDA
:
Ans. 2D Transformation .
Ans. Aliasing :
The term aliasing" refers to the ploting of apoint
2. The algorithm is still time-consuming. can
Transformation is the process by which weobject
33 Ermoralgorithm orientation dependent.
is
Dosition and direction ofany in alocation other than its true location in order to
dueito
away from their limited precision in floating Hence end point accuracy is poor,
point representation
changethe shape, any coordinate system on the fitthe point into raster.
actual position when the line is relatively long.may cause calculated pointtoshift
with respect.to Translation, Rotation, Scaling, Antialiasing Techniques :
backgroundandbyShearing.
Reflection In the line drawing algorithms, we have seen that
transformation area is a fundamental part of all rasterized locations do not match with the true
2D
Graphlcs &Animation/ 2020-21/130
BCA Vh Semester/ / Computer BCA Vth Semester//Computer Graphics &Animation
Ine and we have to select the optimum raste Area sampling is one most
popular a
/2020-21/ 134
oCations to represent a straight line. This problem technique. In this, we superimpose Bezier curves are
defipnreit-ifolen.ing
onto the continuous
drawing packages,commonl y found in painting and
intersect:theobject we F
is severe in low resolution screens.Insuch screens pattern
line appears like a stair-step. This effect is known each pixel areathat they are easy to as wellandas CAD system since,
as aliasing. It is dominant for lines having slopes the percentage of overlap bv objtheect, calculat Po
in curve design.implement reasonably powerful
less than 20° or greater that 70°. percentage determine the
The aliasing effect can be reduced by adjusting intensity value ofthe
proportion objoftheect, Thig
corresponding pixel thatoivseradul
intensities of the pixels along the line. The process to the object contribution.
VP
Bezier Curve
06. What is
types of animation ? What are
animation
? two
Computer AnimationExplain both.
are used in
of
lineadjusting intensities
to minimize gfthe
the efect of pixels
aliasingalong curves which appearcomputer
the Q5(b). what are Bezier cuves? StateOdUBezier curve
is called reasonablygraphics
smoothto Ans.
antialiasing. irconsnt mathematical
Antialiasing is one which compensates the explaining the terms
expreession of
involved.Bezier curye
Weoales, In general, a Bezier curve section can
be3)fitteedto any number of control points. The
(Please Refer Q1 Unit-V Page-80]
Types of Animation :
consequences of under sampling process. The Ans. Bezier Curve : Dumber of control points to be approximated and
Bezier curve is an
displays which allow setting pixel to grey levels
approach for relative position determine the degree ofthe [Please Refer 24
Unit-V Page-83]
defining polygon. A. Bezier curvedetisermaconst ruct iohe
between black and white, provide a mean to reduce of a curve. A Bezier Curve is Bezierpolynomial.
the effect of aliasing and it usesthe grey levels to ined by a also be specified with boundary Q7.Ahomogenous co-oirdinate point P(3,
Bezier curve can
points used. Bezier curve can be polynomial
gradually turn offthe pixelin arow as it gradually of degree one less than the nunbo 2, 1)
turn on the pixel in the next. characterizing
coMtro)conditions, with a
functions,
matrix or with by-2,istranslated in x, and
-2 and -2 unit respectivelydirections
y z
fitted to any Bezier curve is a polynomial.of successive rotation 60 followed
Basically there are two method of antialiasing: number control points and their relative
of blending by
(a) Post-filtering (b) Pre-filtering determines the degree of Bezier posti degree one less than the number of control points X-axis. Find the final degree about
position of
(a) Post-Filtering : In this process sample rate
A Bezier curve is a polynomial. Ged, Three points generate a paralbola, four points, homogenous co-ordinate.
is increased and this is accomplished by increasing mathematicallyapplications.
curve used intwo-dimensional g defined a a cubic curve. Ans. P(3,2, 1)
4-2,,=-2,4, =-2
the resolution of the raster.
and the terminating
lgraphitheinitial
The curve is defined by four points c position 0 The translation is achieved by following equations
There are two main post-filtering techniques are : position (which are calle.
() Super Sampling : In super sampling, a "anchors") ) and two separate Xnew Xold +ty ’3+(-2)>1
middle points
pseudo raster of higher resolution than the are calledhandles"). The shape of the Bezier(which Ynew ’ Yold +ty ’2+(-2)’0
lan physical raster is superimposed on the cán be altered by moving the handles rCurve Znew Zold +t, ’1+(-2)’-1
physical raster. The image is then rasterized The mathematical method for
drawing curves was
at the higher resolution of the pseudo raster, created by Pierre Bezier in the late 1960'% for t Po Lsc Pnew ’,0,-1)
9d au ie.cach pixelis subdivided into subpixel and manufacturing of automobiles at Renat (i) Rotation 60 about x-axis
estsnibthe positionof each subpixel is checked in P
relation to the object to be scan converted. Control point (a) Bezier Curve (b) Bezier Curve 1 0
(i) Low Pass Filtering : In this End point 1 Generated from with four 0 cos 60° sin 60° 0
0 1sreassign each pixel a approach we three Control-Point Control Points rotation matrix ’
new value that is 0 -sin 60° cos60° 0
weighted average to its original value and the End point2 Mathematical Function : 0 0
original values of its neighbours. Alow pass Control point 2 Suppose that there are n+l control points whose
snitsilter inthe form of a(2n+ 1) x(2 + 1) position are given by p,=(4 ygz)with kvaries 01x
where n21, hold the weight for grid, the
Properties of Bezier Curve : Trom 0 to n, these coordinate points are used to cos 60° sin 60 0
computation. (a) The basic functions are real. produce the position vector plu) which describes f0 -sin 60° cos60° 0 z
i(b) Pre-Filtering : In this (b) The Bezier curve always passes through the the path of an approximating Bezier polynoma 0
method, a pixel is
Ctreated as a finite area rather than first and last control pöints. :
function between p, and p, is given by
this technique, basically work on as a point and (©) The curve lies entirely within the convex hull BEZKn(u),0susi.
0
the the true signal in formed by4control points. P(u) = 2 Pk |0 cos 60° sin 60° 0 0
continuous-space to
device.proper
individual pixel. aarltinogls gniwsil valus for (d) The direction of the tangent vector at the end
k=0 - sin 60 cos 60° 0
x
-1
BEZA,
BCA Vth Semester/ Computer Graphlcs &Animation /2020-21 /132
BCA Vth Semesterr/
Computer Graphicss&
Animation /
o)
Mid-point Circle Algorithm:
radius1rand circle, center (xeY) and 2020-21/133
5-1 (a) Input on origin as iobtain the first point on the
centered
x'=1
2
b) Calculateinitial yalue of decision parameter as circumference of the circle
y'=0 5
2
Ans. Po=---.
At each x position starting:at k=0 perform the
following test
() Ifp, <00then next point alongthe circle centered on (0,0) is
Q8. Explain the following : (i)Else the next pointalong circle is (%+ Y-1) (*y) and
(i) Tweaking
(ü), Morphing
(üü) Clipping where Pk+| =Pk +
2xk+1 +1
and
p"t2k1+l
n Determine 2k+l=2(%+l)
(iv) Mid-point circe algorithm =(2x +2) and
Ans. (i) Tweaking : symmetry points in the
(e) Move each
2y-=2y-)=2y,-2
other seven octants.
calculated pixel position (%, y)
[Please Refer 08(4) 2018-19 Page-117| coordinate values X=X+ Xe+y=y+ye onto the circular path
centered on (x, Y) and plt
(ü) Morphing : (0 Repeat step (c) through (e) until x2y
[Please Refer 08(b) 2018-19 Page-118]
(ii) Clipping :
Clipping is used to define a
outside ofa specified region procedure
that identifies those portions ofthe picture that
of space. are eitherinside
The region against which an object is to be clipped is called CLIP
curved boundaries]. Example : WINDOW. [it can beapolygon wi
yWmax t
yYmaxt
yWmin
Window
Clipping yYmint
Viewport
" Txwmin
The points or lines within XWmax
\xYnin Vmax
the clipping window are
The points or lines outside the clipping indow areretained.
Clipping is
Extrct used to
part of a ni2 discarded.
Identify visible defined
surfaces
scene for Viewing.
in
Displaying'a multiwindow 3D views.
Note: Clipping maps only environment.
content inside the Window to Device
coordinates.
BCAHIhSamesterI Computnr Graghles&A
rotation and scaing,
Year- 2021-2
fne Poygon ciping.
Tine:ThretHour
Nle:Atemptany ihe qustions Alquestons cary equal marik,
VyOutsite
QAa), Explaln vaious interactve pictre
consAns. trucbon techniques. Q7(0), Acubic curve is defiad bbe Sve aoting
points (1, 1, (4,3, (44)4(6 4
Pleuse Refer Q00) 2014-19 Calculate the co-ordinate ot paranetic (c), Define recursiejydeined B-5plines.
mid-point of this curve &vertfy thatskns.
Q4(0), Write in brie Pugell3| gradlentdy/àx =|7atis point Sketh
(0 30transtomation
abouthie olowing: the curve.
diferentarchitectureused in multimediaassystems.
PO).Desrnbethe
should shapeSemester/
Vth
W-W*min
Xmax W,. - describes
in Viewing coordinate
Wmin another World
Window
Finally : : When
describes
-W. device
., coordinates. Ater computer
graphics beon
Wa the : several mapping
regio&n
orientation colordiedsplay, Computer
a /
minV, coordinate coordinate
mapping Their
Tanstormation
after The Definrition
aa
mappingprojection coordinates
objects device.series
a or
Xnax
Wyminsystem.
-of(rectangular) filledwhile
Normalized
systemdevice
coordinate coordinate of of Graphics
-Vy. VminYXmay Viewport are Viewing .The
transformations, a to
and'Polygon
Kmin Wmax The those into in voProjection Explaln contribute
onto assembled 2D represent
& transformation Workstationnormalized
the which imags
unity &
window window the
coordinate region viewing Animation
Ymax -W
W, ymin common the It totFilling
into he
-WNymin
, in
individual onto pipeline which with the
coordinate aNormalized interior
Ymin Vyma includes oneDevice/mage
coordinate
system planesystem scene
coordinate
(NC) an creaion involves 2022-23 /
coordinate are
objectives Workstation
viewport of thobjects
ey |Transformation describespassedexample. of
Vymay'
Vy-ymin. following (window)
to the specific to determining
ofthe /
are various
specific a cameradescribed (model) device 138
system this by polygon
V
tois yields geometry ViSual
Ymin
steps into procès shape. which
convert device, (viewer) are |coordinate
Deyice
windowanother device as
created. elements
(W,, we world fodatato
r Bothpixels
2D
direction (a)Basic Transformation:
In
points. 3-D
3D
Ans,
Q5(b).
Ans.
Q5(a). where
Translation 3D this,
transformation 2-D
V=al =(p(x,
all obj TransformationWhat Explain (y.)=
+
and
transformations
displacement the
is
N Wynt
Wymin Wnax Wm
Amax
transformation
bJ in
1
Yaxymin BCA
:
An y,2)) system 2-D
+
ckobject and
details (W, Vh
of are
defined (Please 3-:D [Please
Refer
Q6(a) Yymin 1 0 W, min
Semester
is :
the regquired [Please interactive I)*N
displayed
translation transformation? 0 0
(W,
with - I
Refer Refer Knax
W,
Ymax Wymin Computwr
at are 3D
is aapplied coordinate picture.construction -Nämin-
V prescribed given 04 Q7 ymin Grmphics
OR Xmin W,
P(X,z)
y, distance on 2020-21 Unit-IPage-113]
2018-19
to Explain &
by the systen, Ymin
Vxmar Animatlon
aand object Xmax
vector Page-129] Page-55I
direction an it
with
only, object
techniques. míinWy /2022-3I
from not an
obj example. 0
its to is
the considered 139
original
coordinate
Nyin
position.The 1 0
as
system. a
set 0
of
can
:y'=yRey (ii) 0) 2Din ofrotation.
transformation asone the (C)
theprescription
ofthe Rotation:
matrix
formIn reductios<1.n,diwhether
mensions b)
then The The
Scaling new
Rotation
derivation
=-xsinx=xcos0zsin + Rexy'=Xsin0+ycos
Rotationabout axis
origin.rotation.
positive
of The
aboutproceeds canonical Three
Ssysysz
scaling
the
the The :
requiredIhomogeneous
[x'ofy'z'l]=[x expressedbe Ty points
|Z=y'=z+c
=y+b[x'=x+a
leads to
about x'=xcos-ysin x, of =|0
object. can BCA
@0+zcos8 y an 0 0: [x'=s,*x
|Z=s,*z
S, process
is be Vh
the Then and angle
dimensional a as
y-axis
z'=z just rotation z 0 Sy
magnification, y calculatedSemester/
as
coordinate
z-axisconstruction of
The of z
1]
like rotation Sz 0 0 scaling
factor a 0 0I0o matrix
p(x, z)
y, : : that are cb 0
An defined
rotation transformation
0
/Computer
of axis s
analogous a of axiandsan schanges
determines >
rotationchosen is
rotation
requiresy01 1, a
when or the
a Griphlcs
() () )(a) (ti)
With With The Similarty &Animaton
N rix With
matRelecton:
willbe Kø1Y=ycos8-zsine
corresponding
Rotation
p'My respect pMy
respect cossin
Re=0 =0
Rgy oRO
KOK=-sin
cosA
respect
0 T0 L00,0x
00
1|
00l|z sin8
cose 0-sin0)
0 cos8
0000100 0-10
to
L0-1
0|y 0 1
to
00-1
fncosb
-nt 0 Z=ysin+zcos
cos0
sin 0 /2022-23/140
about
01 yz 0 0 0 Myz xz tothis,
0 xy 1
plane 0 I plane
olly plane
thereinay matrix the
1|1| 0z 10
transfornations ArS:
P.
be
three
cases. are
Animation / 2022-23/ 141
BCA Vh Semester / Computer Graphics &
expresslon of Bezler cun
Q6(0). What are Bezier curs?State the mathematical
Ans.
(Please Refer 25(b) 2020-23 Page-130]
Q6(6). What is 3-D viewing? Explaln it in details.
Ans.
(Please Refer Q1 Unit-IVPage-64]
Q7(a). Describe the algortthms for 3-D volumes spline curvesurfaces in etails,
Ans.
[Please Refer 05(6) 2018-19 Page-l13]
Q7(b). How many types of animation? Explain it is details.
Ans.
Please Refer Q4 Unit-V Page-837
Q8. Explain the following :
() GSKprimitive
(ü) Muitimedia application,
(ii) Morphing
(iv) Tweaking
Ans.() GSK Primitive :
Please Refer 07(4) 2018-19 Page-l16
Ans. (i) Multimedia Application :
Please Refer Q13 Unit-VPage-94]
Ans. (ii) Morphing :
Please Refer Qll Unit-VPage-92]
Ans. (v) Tweaking :
[Please Refer Q8(a) 201&-19 Page-II7)