cg...
cg...
Advantages:
1. A CRT has the electron beam directed only to the parts ofthe screen where
an image is to be drawn.
2. Produce smooth line drawings.
3. High Resolution
Disadvantages:
Frame Buffer is also known as Raster or bit map. In Frame Buffer the positions
are called picture elements or pixels. Beam refreshing is of two types. First is
horizontal retracing and second is vertical retracing. When the beam starts from
1. It has high Resolution 1. Its resolution is low.
the top left corner and reaches the bottom right scale, it will again return to the
top left side called at vertical retrace. Then it will again more horizontally from
top to bottom call as horizontal retracing shown in fig:
1. Interlaced Scanning
2. Non-Interlaced Scanning
In Interlaced scanning, each horizontal line of the screen is traced from top to
bottom. Due to which fading of display of object may occur. This problem can
be solved by Non-Interlaced scanning. In this first of all odd numbered lines are
traced or visited by an electron beam, then in the next circle, even number of
lines are located.
For non-interlaced display refresh rate of 30 frames per second used. But it gives
flickers. For interlaced display refresh rate of 60 frames per second is used.
Advantages:
1. Realistic image
2. Million Different colors to be generated
3. Shadow Scenes are possible.
Disadvantages:
1. Low Resolution
2. Expensive
7. Beam Penetration technology come under 7. Shadow mark technology came under
it. this.
8. It uses interlacing
8. It does not use interlacing method.
9. It is restricted to line drawing applications
17
Advantage:
1. No refreshing is needed.
2. High Resolution
3. Cost is very less
Disadvantage:
Basis of
2D Animation 3D Animation
Difference
Presentations, online
marketing platforms, TV shows, Cartoons, video games,
Used for
commercial websites, Disney movies, etc.
advertisements, etc.
Adobe Photoshop,
Blender, Daz Studio, ZBrush,
Software’s used PicsArt, Toon Boom
Autodesk Maya
Studio
20
What is LCD?
LCD is a flat display technology, stands for "Liquid Crystal Display," which is
generally used in computer monitors, instrument panels, cell phones, digital
cameras, TVs, laptops, tablets, and calculators. It is a thin display device that offers
support for large resolutions and better picture quality. The older CRT display
technology has replaced by LCDs, and new display technologies like OLEDs have
started to replace LCDs. An LCD display is most commonly found with Dell laptop
computers and is available as an active-matrix, passive-matrix, or dual-scan display.
The picture is an example of an LCD computer monitor.
The LCD displays are not only different in terms of heavy than CRT monitors; even
the process of working of them is also different. An LCD contains a backlight rather
than the firing electrons at a glass screen, which offers light to individual pixels
arranged in a rectangular grid. All pixels have a sub-pixel, red, green, and blue,
which can be turned on or off. The display appears black if all of a pixel s sub-pixels
are turned off and appears white if all the sub-pixels are turned on 100%. The
millions of color combinations can be possible with the help of adjusting the
individual levels of red, green, and blue light.
As compared to CRT technology, LCD consumed much less power and allowed
displays to be much thinner that also made them very less heavy. Instead of
emitting light, LCDs work on the principle of blocking light. In an LCD, where an LED
ejects light, the liquid crystals produce a picture with the help of using a backlight.
Also, while comparing with gas-display and LED displays, LCDs consume less energy.
have low contrast ratios, viewing angles, and reproduction of color. These
displays are available with 240 hertz (Hz) as these are the only gaming
displays.
2. In-Plane Switching (IPS): In Panel Switching displays givebetter picture
quality, vibrant color precision & difference while comparing with TN LCDs.
Graphic designer and some other applications commonly use these displays;
hence, these are considered to be the best LCD.
3. Vertical Alignment Panel (VA Panels): The vertical alignment panels are
considered to deliver the medium quality between in-plane switching panel
and Twisted Nematic technology. As compared to TN-type displays, this kind
of panel has color reproduction with higher quality as well as best viewing
angles features. Also, these panels are much sufficient for daily use and more
reasonable, but these contain a low response time. As compared to the
Twisted Nematic display, these panels generate deeper blacks with better
colors. While comparing with TN kind displays, numerous crystal alignments
can permit better viewing angle. Additionally, these displays are costly
comparing to other displays. Hence these come with a tradeoff.
4. Advanced Fringe Field Switching (AFFS): AFFS LCD is a topperformer and
offers an extensive choice of color reproduction. These displays provide good
image quality. Generally, these displays are most commonly used in highly
advanced applications such as viable airplane cockpits.
Bresenham’s circle drawing algorithm
This is a circle drawing algorithm which calculates all the nearest point nearest to
circle boundary
It is an incremental method
It only uses integer arithmetic which makes it’s working faster as well as less
complex
The strategy that is followed in this algorithm is to select pixel which has least
distance with true circle boundary and with then keep calculating successive
points
This algorithm calculates location of the pixels similarly.
Algorithm
Initialize x=0, y=r
Calculate decision parameter D=3-2r
If d<0 then : d=d+4x+6, xn =x+1 , yn = y
If d>/0 then : d=d+4(x-Y)+10 , xn= x+1, yn = y-1
22
DDA Algorithm
DDA stands for Digital Differential Analyzer. It is an incremental method of
scan conversion of line. In this method calculation is performed at each step
but by using results of previous steps.
Disadvantage:
1. It involves floating point additions rounding off is done. Accumulations
of round off error cause accumulation of error.
2. Rounding off operations and floating point operations consumes a lot
of time.
3. It is more suitable for generating line using the software. But it is less
suited for hardware implementation.
4. DDA Algorithm:
5. Step1: Assign point (x1,y1)and (x2,y2)
6. Step2: find slope m=∆y/∆𝑥= y2-y1/x2-x1
7. Step3: find =∆𝑥 𝑎𝑛𝑑 = ∆𝑦
=∆𝑥 = ∆𝑦 = ∆𝑦.𝑚
𝑚
=∆𝑦 = 𝑥2 − 𝑥1/𝑦2 − 𝑦1
∆𝒙 = 𝒙𝟐 − 𝒙𝟏
∆𝑦 = ∆𝑥.𝑚
=∆𝑥 = 𝑦2 − 𝑦1/𝑥2 − 𝑥1
=∆𝒚 = 𝒚𝟐 − 𝒚𝟏
Step 4; if |∆ x| >/|∆𝑦| if |∆𝑥| < |∆𝑦|
∆𝑥 = 1 ∆𝑦 = 1
xi+1=xi+1 xi+1=xi+=∆𝑥
yi=1=yi+=∆𝑦 xi_=∆𝑦/𝑚
=yi+m∆x xi+1/m=xi+1
Yi+m*1 yi+1=yi+=∆𝑦
Yi=yi+m yi
+1=yi+1
23
b) P>/0 b) p>/0
Xi+1 = xi+1 Xi+1 = xi+1
Yi+1 = yi+1 Yi+1 = yi+1
Pk+1 = pk+2∆y-2∆𝒙 Pk+1 = pk+2∆y-2∆𝒙
24
Algorithm:
Plot intial point such that x= 0 &y=r
Find intial decision parameter p=5/4-r
If (p<0) : set p= p+2x+3 & yn =y, xn = x+1
Else if (p>0): set p=p+2(x-y)+5 & yn = y-1, xn = x+1
Plot complete circle by using 8 way symmetry
It is based on the following function for testing the spatial relationship between
the arbitrary point (x, y) and a circle of radius r centered at the origin
Advantages:
• The mid-point ellipse algorithm has simple and easy
implementation as it only includes addition operations.
P′ = P . R
2D Translation
2D Translation is a transformation technique that changes the position of each point in
an object or a coordinate system by a specified distance in the x and y axes.
Applying 2D translation, we can say:
X’ = X + tx
Y’ = Y + ty
26
(tx, ty) represents the shift or the translation vector. The equations can be expressed
using column vectors for efficient representation and computation.
P=[X]/[Y] p’ = [X′]/[Y′] T = [tx]/[ty]
This can also be written as:
P’ = P + T
2D Scaling in Computer Graphics
2D Scaling in Computer Graphics involves resizing objects or coordinate systems in a
2D plane. It allows us to change the size of each point in the object or coordinate
system by applying scaling factors in the x and y directions.
To perform 2D scaling, we utilize scaling factors: sx for the x-axis and sy for the y-axis.
These factors determine how much each coordinate should be scaled along its
respective axis.
If the scaling factor (SX and SY) is greater than 1, the object is enlarged and moves
away from the origin. A scaling factor of 1 leaves the object unchanged, while a scaling
factor less than 1 shrinks the object and moves it closer to the origin.
The equations for scaling are X’ = X * SX and Y’ = Y * SY, where X and Y are the
original coordinates of a point, and X’ and Y’ are the scaled coordinates after the
transformation.
These equations can also be represented in matrix form as:
Keyboard:
The most commonly used input device is a keyboard. The data is entered by
pressing the set of keys. All keys are labeled. A keyboard with 101 keys is
called a QWERTY keyboard.
27
1. Numeric Keys: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
2. Alphabetic keys: a to z (lower case), A to Z (upper case)
3. Special Control keys: Ctrl, Shift, Alt
4. Special Symbol Keys: ; , " ? @ ~ ? :
5. Cursor Control Keys: ↑ → ← ↓
6. Function Keys: F1 F2 F3....F9.
7. Numeric Keyboard: It is on the right-hand side of the keyboard and
used for fast entry of numeric data.
Function of Keyboard:
Joystick:
A Joystick is also a pointing device which is used to change cursor position on
a monitor screen. Joystick is a stick having a spherical ball as its both lower
and upper ends as shown in fig. The lower spherical ball moves in a socket.
The joystick can be changed in all four directions. The function of a joystick is
similar to that of the mouse. It is mainly used in Computer Aided Designing
(CAD) and playing computer games.
Digitizers:
The digitizer is an operator input device, which contains a large, smooth board
(the appearance is similar to the mechanical drawing board) & an electronic
tracking device, which can be changed over the surface to follow existing lines.
The electronic tracking device contains a switch for the user to record the
desire x & y coordinate positions. The coordinates can be entered into the
computer memory or stored or an off-line storage medium such as magnetic
tape.