Computer Graphics - PPT - CH1
Computer Graphics - PPT - CH1
Basic
knowledge of basic
mathematics such as matrices ,
vectors
Knowledge of C programming
Teaching Scheme
Examination Scheme
Syllabus
CH1 - Introduction
Definition and Representative uses of computer graphics
Overview of coordinate system,
Definition of scan conversion, rasterization and rendering.
Raster scan & random scan displays
Architecture of raster graphics system with display processor, Architecture of random
scan systems
CH 2 - Output Primitives:
Scan conversions of point, line, circle and ellipse
DDA and Bresenham algorithm for line drawing
Midpoint algorithm for circle
Midpoint algorithm for ellipse drawing
Aliasing, Antialiasing techniques like Pre and post filtering, super sampling,
and pixel phasing.
Filled Area Primitive
Scan line Polygon Fill algorithm
Inside outside tests
Boundary Fill and Flood fill algorithm
Syllabus
Flight Simulator
Applications of Computer Graphics
Computer Art: Computer Graphics are also used in the field of commercial arts.
It is used to generate television and advertising commercial.
Entertainment: Computer Graphics are now commonly used in making motion
pictures, music videos and television shows.
Visualization: It is used for visualization of scientists, engineers, medical
personnel, business analysts for the study of a large amount of information.
Educational Software: Computer Graphics is used in the development of
educational software for making computer-aided instruction.
Printing Technology: Computer Graphics is used for printing technology and
textile design.
Data visualization
Overview of coordinate System
cos θ = x / r
sin θ = y / r
x = r cosθ
y = r sin θ
Scan Conversion
In the 'graphics pipeline' it's the last major step, giving the final appearance to
the models and animation.
It has uses in computer and video games, simulators, movies or TV special
effects, and design visualization, each employing a different balance of features
and techniques
Rendering
https://www.youtube.com/watch?v=0Ysc9PViwgM
CRT – Cathode Ray Tube
The maximum number of points that can be displayed without overlap on a CRT is
referred to as the resolution.
A more precise definition of resolution is the number of points per centimeter that can be
plotted horizontally and vertically, although it is often simply stated as the total number
of points in each direction.
For example : Resolution is 1024 x 850
Resolution of a CRT is dependent on the type of phosphor, the intensity to be displayed,
and the focusing and deflection systems.
Typical resolution on high-quality systems is 1280 by 1024.
High- resolution systems are often referred to as high-definition systems.
The physical size of a graphics monitor is given as the length of the screen diagonal, with
sizes varying from about 12 inches to 27 inches or more.
Aspect ratio
The aspect ratio of a display device is the proportional relationship between the
width and the height of the display.
Common aspect ratios for displays include 5:4, 4:3, 16:10 and 16:9.
The aspect ratio 4:3 means that the ratio of the width of the display screen to
the height is 4 to 3.
An aspect ratio of 4 / 3 means that a horizontal line plotted with four points has
the same length as a vertical line plotted with three points.
Color Depth
Color depth of a display is number of bits used to hold the color value
of each pixel.
1 – bit = 2 colors
2 – bit = 4 colors
3 – bit = 8 colors
8-bits = 256 colors
Color CRT Monitors
Advantages:
1.Inexpensive
Disadvantages:
2.Only four colors are possible
3.Quality of pictures is not as good as with another method.
Shadow Mask method
Shadow Mask Method is commonly used in Raster-Scan System because they produce a much
wider range of colors than the beam-penetration method.
It is used in the majority of color TV sets and monitors.
This type of CRT has 3 electron guns, one for each color dot and a shadow mask grid just behind
the phosphor coated screen.
The three electron beams are deflected and focused as a group onto the shadow mask, which
contains a series of holes aligned with the phosphor-dot patterns.
When the three beams pass through a hole in the shadow mask, they activate a dot triangle, which
appears as a small color spot on the screen.
The phosphor dots in the triangles are arranged so that each electron beam can activate only its
corresponding color dot when it passes through the shadow mask.
We obtain color variations in a shadow-mask CRT by varying the intensity levels of the three electron
beams.
Shadow Mask Method
Shadow mask Method
Advantage:
Realistic image
Million different colors to be generated
Shadow scenes are possible
Disadvantage:
Relatively expensive compared with the monochrome CRT.
Relatively poor resolution
There are two ways by which we can display an object on the screen
2) Random scan
Raster Scan Display
Interlaced scanning
First , all odd numbered lines are traced or visited
by an electron beam, then in the next cycle, even
number of lines are traced.
Here , screen is scanned twice.
Advantage:
1) Avoid Flicker
2) Most commonly used for slower refresh rate.
Raster scan display
Advantages:
Generates realistic image Jagged lines
Million Different colors to be generated
Shadow Scenes are possible.
Disadvantages:
Low Resolution
Expensive since it requires special display processor.
Produces jagged lines that are plotted as discrete point
sets.
https://www.globalspec.com/learnmore/industrial_computers_boards/co
mputer_peripherals/computer_printers_plotters
Architecture of raster graphics system with display
processor
Main component of Raster scan
system Architecture
Display Processor
Video Controller
Frame buffer
Raster scan system - Display
Processor
Once the picture definition is stored in frame buffer, a special processor called
video controller (or display controller), is used to control the operation of the
display device.
A fixed area of the system memory is reserved for the frame buffer and the
video controller is given direct access to the frame buffer memory.
The frame buffer holds the intensity values for all the screen points.
The video controller retrieves the stored intensity values from frame buffer and
display them onto the screen one row at a time.
Raster scan system - Video
Controller
Architecture of Random scan Display
system
Architecture of Random scan display
system
Architecture of Random Scan display
System
In this system the picture definition is stored in buffer called refresh display file
in terms of a set of commands.
This display file is then accessed by the display processor to refresh the screen.
The display processor (also called Display controller) cycles through each command
in the display file program.
The display processor interprets these commands and convert them in to digital
values. This digital values are fed to the vector generator.
The vector generator is a device, which converts digital values into analog voltages
and feed them to display device.
Sometimes the display processor in a random-scan is referred as Display Processing
Unit / Graphics Controller.
Random scan system
ADVANTAGES:
Higher resolution as compared to raster scan display.
Produces smooth line drawing.
Less Memory required.
DISADVANTAGES:
Realistic images with different shades cannot be drawn.
Colour limitations.
No. Raster Scan System Random Scan System
1 In Raster scan system the electron beam swapped across a In Random scan system draw a picture one line at
screen one row at a time from Top to Bottom .As the electron a time for this reason called as Vector display.
beam moves across each row .The beam intensity is turned ON or Stroke writing or calligraphics displays.
OFF to create a pattern of illuminated spot.
2. Picture definition is stored in a memory area called Frame buffer Picture definition is now stored is a set of line
or Refresh buffer. This memory area holds the set of intensity drawing command in an area of memory which is
value for all the screen points. called refresh displayed file.
3. Home television sets & Dot matrix printers e.g. of such system A Pen plotter operate in similar way & an e.g. of
using of Raster scan system. Random scan system.
4. Refreshing on Raster scan display is carryout at the Rate of 60 to Refreshing in Random scan display to draw all the
80 frames per seconds. components of lines of pictures 30 to 60 frames
per second.
5. Picture with better contrast. Cannot produce contrast ,memory doesn’t store
intensity values of pixels.
6. Raster scan system have lower Resolution than Random scan Random scan system have higher Resolution than
resolution system. Raster scan system.
7. In Raster scan system produced Zacked lines that are plot. Random scan produce smooth line drawing
because the CRT directly follows line path.
8. Raster scan system designed for to display Realistic shaded Random scan system are designed for line drawing
screen. application & can’t display Realistic shaded screen.
9. It is less expensive than Raster Scan system. It is costlier than Random Scan system.
10. Shadow mark technology came under this Beam Penetration technology come under it.
QUIZ