Computer Graphics Notes
Computer Graphics Notes
Computer Graphics Notes
Graphics are defined as any sketch or a drawing or a special network that pictorially represents some
meaningful information. Computer Graphics is used where a set of images needs to be manipulated or
the creation of the image in the form of pixels and is drawn on the computer. Computer Graphics can be
used in digital photography, film, entertainment, electronic gadgets, and all other core technologies
which are required. It is a vast subject and area in the field of computer science. Computer Graphics can
be used in UI design, rendering, geometric objects, animation, and many more. In most areas, computer
graphics is an abbreviation of CG. There are several tools used for the implementation of Computer
Graphics. The basic is the <graphics.h> header file in Turbo-C, Unity for advanced and even OpenGL can
be used for its Implementation.
The term ‘Computer Graphics’ was coined by Verne Hudson and William Fetter from Boeing who were
pioneers in the field.
The manipulation and the representation of the image or the data in a graphical manner.
Raster Graphics: In raster, graphics pixels are used for an image to be drawn. It is also known as a
bitmap image in which a sequence of images is into smaller pixels. Basically, a bitmap indicates a
large number of pixels together.
Vector Graphics: In vector graphics, mathematical formulae are used to draw different types of
shapes, lines, objects, and so on.
Applications
Computer Graphics are used for an aided design for engineering and architectural
system- These are used in electrical automobiles, electro-mechanical, mechanical, electronic
devices. For example gears and bolts.
Visualization- To study trends and patterns.For example- Analyzing satellite photo of earth.
1. Input Devices: These devices allow users to interact with the system by providing
input data. Common input devices include keyboards, mice, graphic tablets,
touchscreens, and specialized input devices like joysticks or game controllers.
2. Graphics Software Libraries and APIs: Graphics libraries and application
programming interfaces (APIs) provide a set of functions and tools for developers
to create and manipulate graphics. Examples include OpenGL, DirectX, Vulkan,
and WebGL.
3. Graphics Processing Unit (GPU): The GPU is a specialized hardware component
designed to handle graphical computations efficiently. It processes the graphical
data and renders images to be displayed on the screen. Modern GPUs are highly
parallel processors optimized for graphics tasks.
4. Central Processing Unit (CPU): While the GPU handles most of the graphical
computations, the CPU coordinates overall system operation, manages memory,
and executes non-graphical tasks. In interactive graphics systems, the CPU and
GPU often work together to handle various aspects of rendering and interaction.
5. Memory: Both system memory (RAM) and graphics memory (VRAM) are
essential for storing data used in rendering graphics. System memory holds
program data, textures, and other assets, while graphics memory stores frame
buffers, textures, and other GPU-specific data.
6. Display Device: The display device, such as a monitor or projector, presents the
rendered graphics to the user. It converts electrical signals into visible images.
7. Rasterization Pipeline: In 3D graphics, the rasterization pipeline converts
geometric primitives (such as polygons) into pixels on the screen. This process
involves vertex transformations, clipping, rasterization, and pixel shading.
8. Rendering Engine: The rendering engine encompasses algorithms and processes
responsible for generating images from 3D scene data. It includes techniques
such as lighting, shading, texture mapping, and effects like shadows and
reflections.
9. User Interface (UI): The user interface allows users to control and interact with
the graphics system. It includes elements such as menus, buttons, sliders, and
other widgets for adjusting settings and initiating actions.
10. Event Handling System: This component manages user input events (e.g.,
mouse clicks, keyboard presses) and triggers appropriate responses within the
graphics system, such as updating the scene or initiating specific actions.
Using these components, we are able to see the output on the screen in the form of
pixels.
2. TV Monitor:
Monitor helps us to view the display and they make use of CRT (Cathode Ray
Tube)
3. Display Controller:
It is an interface between digital memory buffer and TV monitor. The main
function of this is to pass the contents of frame buffer to the monitor. The display
controller reads each
Successive byte of data from the frame buffer memory and converts 0’s and 1’s
into corresponding video signal. This signal is then fed to the TV monitor to
produce a black and white picture on the screen. Now, display controller is
recognized as display card and one of our choice can be VGA card with a
resolution of 640 x 480.
Computer graphics deals with creation, manipulation and storage of different type of
images and objects. Some of the applications of computer graphics are:
1. Computer Art: Using computer graphics we can create fine and commercial
art which include animation packages, paint packages. These packages
provide facilities for designing object shapes and specifying object
motion.Cartoon drawing, paintings, logo design can also be done.
6. Training: Specialised system for training like simulators can be used for
training the candidates in a way that can be grasped in a short span of time
with better understanding. Creation of training modules using computer
graphics is simple and very useful.
10. Graphical User Interface: The use of pictures, images, icons, pop-up
menus, graphical objects helps in creating a user friendly environment where
working is easy and pleasant, using computer graphics we can create such an
atmosphere where everything can be automated and anyone can get the
desired action performed in an easy fashion.
These are some of the applications of computer graphics due to which it’s popularity
has increased to a huge extend and will keep on increasing with the progress in
technology.
Flat-panel displays
Virtual reality
Despite their historical significance, CRT displays have largely been phased out in favor
of newer technologies like LCD, LED, and OLED displays, which offer advantages such as
thinner profiles, lighter weight, lower power consumption, and better image quality.
However, CRTs still hold niche applications in industries like broadcasting, where their
unique characteristics may be preferred for specific purposes.
—
Then, the free, negatively electrons are then accelerated towards the phosphor coating by a high
positive voltage.
— Intensity of the electron beam is controlled by the voltage at the control grid.
— A high negative voltage applied to the control grid will shut off the beam.
— A smaller negative voltage on the control grid decreases the number of electrons passing through.
— The brightness of a display point is controlled by varying the voltage on the control grid.
— The focusing system forces the electron beam to converge to a small cross section as it strikes the
phosphor.
— Deflection of the electron beam can be controlled by the deflection coils.
— Spots of light are produced on the screen by the
transfer of the CRT beam energy to the phosphor.
— Persistence: how long phosphors continue to emit light after the CRT beam is removed.
— Persistence is defined as the time that it takes the emitted light from the screen to decay to one-tenth of
its original intensity.
— Lower-persistence phosphors require high refresh rates to maintain a picture definition on the screen
without flicker and they are useful for animation.
— Higher-persistence phosphors are useful for displaying highly complex, static pictures.
ADVANTAGES:
Real life images with different shades can be displayed.
Color range available is bigger than random scan display.
DISADVANTAGES:
Resolution is lower than random scan display.
More memory is required.
Data about the intensities of all pixel has to be stored.
Random scan displays (Vector display, Stroke writing,
Calligraphic) :
In Random-Scan Display electron beam is directed only to the areas of screen where a
picture has to be drawn. It is also called vector display, as it draws picture one line at
time. It can draw and refresh component lines of a picture in any specified sequence. A
Pen plotter is an example of random-scan device. The number of lines regulates refresh
rate on random-scan displays. An area of memory called refresh display files stores
picture definition as a set of line drawing commands. The system returns back to first-
line command in the list, after all the drawing commands have been processed. High-
quality vector systems can handle around 100, 00 short lines at this refresh rate. Faster
refreshing can burn phosphor. To avoid this every refresh cycle is delayed to prevent
refresh rate greater than 60 frames per second. Suppose we want to display a square
ABCD on the screen. The commands will be:
Draw a line from A to B
Draw a line from B to C
Draw a line from C to D
Draw a line from D to A
virtual reality
What is virtual reality?
Virtual reality is a simulated 3D environment that enables users to explore and
interact with a virtual surrounding in a way that approximates reality, as it is
perceived through the users' senses. The environment is created with computer
hardware and software, although users might also need to wear devices such as
helmets or goggles to interact with the environment. The more deeply users can
immerse themselves in a VR environment -- and block out their physical surroundings
-- the more they are able to suspend their belief and accept it as real, even if it is
fantastical in nature.
VR systems can vary significantly from one to the next, depending on their
purpose and the technology used, although they generally fall into one of the
following three categories:
Retail. VR has already made some inroads into retail, but the
industry has only scratched the surface. With the right apps,
customers will be able to try on clothes, decorate their homes,
experiment with hair styles, test eye glasses and in general make
more informed decisions about products and services.