ComputerGraphics Unit1 Notes
ComputerGraphics Unit1 Notes
Computer Graphics is a field of computer science that deals with creating, storing,
manipulating, and displaying visual images using computers.
Definition
Computer Graphics is the technology of producing pictures and animations using a computer.
Main Goals of CG
To generate images
To modify existing images
To display visual information clearly
Basic Components of a Graphics System
1. Input Devices
2. Central Processing Unit (CPU)
3. Graphics Processing Unit (GPU)
4. Frame Buffer (Video Memory)
5. Output Devices (Display/Printer)
Block Diagram of a Graphics System
Input Devices → CPU → GPU → Frame Buffer → Display Device
Comparison Table
Type Size Power Use Picture Quality Thickness
CRT Bulky High Good Thick
LCD Thin Low Good Thin
LED Very Thin Very Low Better Very Thin
OLED Ultra Thin Very Low Excellent Ultra Thin
Plasma Heavy High Very Good Thick
In Computer Graphics, the screen can be drawn using two main display methods:
1. Raster Scan
2. Random Scan (Vector Scan)
These methods describe how the picture is drawn on the screen.
Advantages
✔ Realistic images
✔ Supports color and shading
✔ Good for photos and videos
Disadvantages
✘ Requires more memory
✘ Slightly slower for drawing lines
Used In
TVs
Computer monitors
Smartphones
Modern graphics systems
In a Raster Scan Display, the screen is drawn line by line from top to bottom.
There are two main types of scanning:
1. Interlaced Scanning
2. Non-Interlaced Scanning (Progressive Scanning)
1 Interlaced Scanning
Meaning:
In interlaced scanning, the screen is divided into two parts called fields.
First field → draws odd-numbered lines (1, 3, 5, 7…)
Second field → draws even-numbered lines (2, 4, 6, 8…)
Both fields together form one complete frame.
How It Works:
The electron beam first scans odd lines.
Then it goes back and scans even lines.
This happens very fast, so our eyes see it as a complete image.
Example:
Used in older TV systems like:
NTSC
PAL
Diagram (Conceptual):
Field 1: 1 3 5 7 9
Field 2: 2 4 6 8 10
Advantages:
✔ Requires less bandwidth
✔ Reduces flicker compared to low frame-rate systems
Disadvantages:
✖ Can cause flickering
✖ Motion may appear blurry
✖ “Combing effect” in fast-moving scenes
How It Works:
The beam scans from top to bottom.
All lines are refreshed in order.
Then the next frame is drawn.
Example:
Used in:
1080p
720p
Modern LCD, LED, OLED monitors
Diagram (Conceptual):
1
2
3
4
5
6
Advantages:
✔ Better image quality
✔ No flickering
✔ Smooth motion
✔ Best for computer graphics and gaming
Disadvantages:
✖ Requires more bandwidth
✖ Higher memory requirement
Key Differences
Feature Interlaced Non-Interlaced
Line Drawing Odd & even separately All lines sequentially
Frame Creation Two fields = 1 frame One pass = 1 frame
Picture Quality Lower Higher
Flicker More Less
Used In Old TVs Modern monitors
Working Principle
The electron beam directly moves from one point to another.
It draws only the required lines.
Does NOT scan the full screen line by line.
Works like drawing with a pencil.
Diagram
Advantages
✔ Very smooth lines
✔ Less memory required
✔ High resolution for line drawings
Disadvantages
✘ Cannot display realistic images easily
✘ Not good for shading
✘ Limited color support
Used In
Early computer graphics systems
Engineering design systems
Oscilloscopes
Base of
Difference Random Scan Raster Scan
Basic Idea
Color CRT works on the principle of RGB (Red, Green, Blue) color combination.
Every color on the screen is produced by mixing:
Red
Green
Blue
Main Components
1. Three Electron Guns
o One for Red
o One for Green
o One for Blue
2. Phosphor-Coated Screen
o Screen is coated with tiny dots arranged in groups of 3:
Red phosphor dot
Green phosphor dot
Blue phosphor dot
3. Color Generation Methods: There are two primary methods for generating col
ors in CRTs:
Shadow Mask: This method uses a mask to ensure that each electron beam only hits
its corresponding color phosphor, allowing for millions of colors to be displayed.
Working Principle
1. Three electron guns fire beams.
2. Beams pass through shadow mask.
3. They hit corresponding RGB phosphor dots.
4. Dots glow when struck.
5. Different intensities of RGB produce different colors.
Example:
Red + Green = Yellow
All three full intensity = White
No intensity = Black
Beam Penetration: This method uses varying speeds of the electron beams to mix co
lors, producing a limited palette.
Advantages
Good color reproduction
High contrast
Less motion blur
Disadvantages
Very bulky and heavy
High power consumption
Generates heat
Flat-Panel Displays
From the name itself, we can understand the idea of flat panel displays. A flat panel
display is a type of video display that is lighter, thinner, and more efficient compared to
traditional cathode-ray tube (CRT) monitors. These are useful for their slim structure, which
makes it more convenient. Unlike bulky CRTs, flat panel displays do not rely on vacuum tubes
and electron guns. Instead, they use advanced technologies such as liquid crystals, plasma, and
light-emitting diodes (LEDs) to display images.
Flat panel displays are used in several devices including: Televisions, Computer
monitors, Smartphones, Digital cameras, Industrial displays, and many more. Let us now look at
the different types of flat panel displays
1. Emissive Displays
2. Non-Emissive Displays
1. Emissive Displays
Emissive displays generate light directly from the pixels. They do not require a backlight as the
image is produced by the pixel elements themselves.
Plasma Displays − These use small cells containing electrically charged ionized gases (plasma) to
produce images. Plasma displays are known for producing contrasting colors and deep blacks.
This makes them suitable for high-quality television displays.
Organic Light Emitting Diode (OLED) − OLED screens are composed of organic compounds that
emit light when an electric current is applied. They offer vibrant color reproduction and high
contrast. OLED displays are thinner, more flexible, and provide better picture quality than other
display types.
2. Non-Emissive Displays
Non-emissive displays rely on external light sources, usually a backlight, to illuminate the
screen. Examples include −
Liquid Crystal Display (LCD) − LCD is perhaps the most commonly used flat panel technology. It
consists of liquid crystals in between two layers of glass. These crystals do not emit light but
rather manipulate light from a backlight to create images. LCD displays are energy-efficient and
widely used in smartphones, computer monitors, and TVs.
Light Emitting Diode (LED) − While LEDs are used to create backlighting in modern LCD displays,
they can also act as the source of light in certain designs. LED displays are brighter and more
energy-efficient compared to traditional LCDs. These displays are common in outdoor digital
displays and newer flat-screen televisions.
1. Space-Saving − Their slim structure takes up less space compared to older CRT models.
2. Energy Efficiency − Flat panel displays, particularly LCD and LED models, consume
significantly less power than CRTs. Which makes them cost savings and environmentally
sustainable.
3. High-Resolution Imaging − These displays offer high-definition picture quality, providing
sharp and clear images.
4. Wide Viewing Angles − Modern flat panel displays provide wider viewing angles, making it
easier to see content clearly from different perspectives.
5. Lightweight − They are much lighter compared to traditional monitors, making
transportation and mounting easier.
[Link] and Monitors − A flat panel display is the mainstream for both TV and computer
monitors. Be it multiple options, including an OLED, LED or LCD display, with such a beautiful
HD picture and slim design, they are just right for home entertainment and professional use.
2. Smartphones and Tablets − Flat panel displays are a must-have technology for mobile
devices. Now, OLED and LCD screens are the most widely used technologies in the making of
most of the smartphones and tablets, respectively, because they are thin and have a good
picture quality. Further, with the trend of bezel-less displays, it has been tilting more towards
using OLED displays because there is more space for screen when made smaller in devices.
3. Digital Signage − LED flat panel displays find wide use in digital signage. These display units
are found in indoor malls and on outdoor billboards where screens of the flat panel displays can
be changed to present dynamic visual content like advertising, video or public service
announcements. Being bright and having good clarity.
4. Industrial Use − Flat panel displays are also installed at industrial companies. For instance,
they are mounted on machines used in factories and control systems for overseeing particular
processes. LCD displays are preferred for such environments over others due to their durability
and clarity in bright light.
5. Automotive Displays − Today's cars have flat-panel displays and infotainment systems with
digital dashboards. In such cases, the information that is being displayed has to include
navigational details like speed and other diagnostics of the vehicle. For an automotive
application, either OLED or LED is used by considering very high brightness and high response
time aspects.
1. Cost − Advanced display technologies like OLED and MicroLED are more expensive to
produce compared to traditional LCD displays, which can increase the overall cost of devices.
2. Durability − Some flat panel displays, particularly OLED screens, are more susceptible to
burn-in, where static images leave a permanent mark on the screen.
3. Limited Lifespan − The lifespan of certain flat panel technologies, especially OLED, can be
shorter than that of LCDs due to organic compounds degrading over time.
Basic Idea
Stereoscopic displays create 3D vision by presenting two slightly different images, one to each
eye. Since our eyes are about 6–7 cm apart, each eye naturally sees a slightly different view of
an object. The brain combines these two images and creates a sense of depth (binocular
disparity).
How It Works
1. Two cameras (or two virtual cameras in computer graphics) capture the scene from
slightly different angles.
2. The display sends:
o Left image → Left eye
o Right image → Right eye
3. The brain fuses both images → 3D perception.
Types of Glasses
✅ Active Shutter Glasses
Battery-powered glasses.
LCD shutters alternately block left and right eyes.
The screen rapidly switches images (60–120 Hz).
High-quality 3D but more expensive.
Advantages
✔ Realistic depth perception
✔ Good for movies and gaming
Disadvantages
❌ Requires glasses
❌ May cause eye strain
Used in:
Flight simulation
Virtual labs
Gaming
Imagine This Real-Life Situation
Imagine you are standing inside a video game.
When you:
Turn your head left → You see left side of the world
Look up → You see the sky
Look down → You see the ground
It feels like you are inside the environment, not just watching a screen.
That is what an HMD does.
2. Motion Sensors
The headset contains sensors like:
Gyroscope → detects rotation
Accelerometer → detects movement
Sometimes magnetometer → detects direction
3. Head Tracking
If you move your head:
You turn left → View changes to left
You turn right → View changes to right
You look up → View shows sky
Normal TV Watching
You → Watching screen
Screen → Outside of you
HMD
You → Inside the virtual world
World surrounds you
Where Is It Used?
✔ VR gaming
✔ Pilot training
✔ Medical surgery practice
✔ Architecture walkthrough
✔ Military simulations
Easy Comparison
Normal Display
[ IMAGE ]
on a flat surface
You can only see front view.
Volumetric Display
(3D object)
inside
transparent space
You can:
Move around it
See it from different sides
No glasses needed
What is a Voxel?
You know:
Pixel = Picture Element (2D dot on screen), it has height & width
Voxel = Volume Element (3D dot in space), it has height, width & depth
Many voxels together form a 3D object.
Where Is It Used?
✔ Medical imaging (3D heart model from CT scan)
✔ Scientific research
✔ Air traffic control
✔ Military visualization
Example
Imagine a transparent cube filled with tiny LED bulbs.
If you turn on certain bulbs:
You can form a 3D ball
Or a 3D human heart
Or a 3D car
That is the basic idea of volumetric display.
Advantages of Lenticular
✔ Brighter image
✔ Can support multiple viewing angles (in advanced versions)
✔ Used in advertising boards, 3D prints
How It Works
The screen shows interlaced images:
Example pattern:
Column 1 → Left image
Column 2 → Right image
Column 3 → Left image
Column 4 → Right image
Now the barrier allows:
Odd columns → Left eye
Even columns → Right eye
It works by physically blocking some light.
Real Example
Nintendo 3DS
It used parallax barrier technology.
It even had a slider to adjust 3D strength!
Advanced Concept
Modern autostereoscopic displays may use:
Eye tracking cameras
Adaptive barriers
Multiple view zones
So even if you move, the screen adjusts light direction.
This is used in advanced research displays and some premium devices.
Comparison
Feature Lenticular Lens Parallax Barrier
Works by Bending light Blocking light
Brightness Higher Lower
Viewing angles More flexible Limited
Cost Higher Slightly cheaper
Feature Lenticular Lens Parallax Barrier
Image sharpness Good Slightly reduced
Summerized Understanding
Normal 3D:
Glasses separate images.
Autostereoscopic:
Screen separates images.
Volumetric:
Image exists physically in space.
Simple Explanation
CRT = Old TV technology
LCD/LED = Modern TV and computer monitors
OLED = Premium mobile screens
3D devices = Used in VR, movies, and simulation