1 Introduction Of Computer Graphics

Computer Graphics · Unit 1 · 3 hrs

Introduction of Computer Graphics

Exam-focused notes for Introduction of Computer Graphics (Computer Graphics, CSC214): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Introduction of Computer Graphics in short

This chapter introduces computer graphics as a field, surveys where it is used, and lays out the hardware and software layers, from the display device up to the software standards, that every later chapter builds on.

Introduction of Computer Graphics: notes

A Brief Overview of Computer Graphics

Computer graphics is the process of creating, manipulating and storing pictures, drawings and animations with the help of a computer. It covers everything from simple line and shape drawing to complex two and three dimensional scenes used in engineering, science and entertainment. Broadly, computer graphics work is grouped into three kinds of activity: generative graphics, where the computer is used to construct new pictures such as lines, circles and other shapes from a mathematical description; image analysis, sometimes called image processing, where an existing image or photograph is analysed and transformed into another image; and cognitive graphics, which is concerned with how a computer can interpret and understand images the way a human observer would, for example in photographic or pattern recognition.

Graphics systems are also classified by how the user interacts with the picture. In interactive (active) graphics the user takes part in creating or modifying the picture in real time, for example playing a game or drawing in a paint program, where the picture responds immediately to input. In non-interactive (passive) graphics the viewer only observes a picture that was already produced, such as a pre-rendered movie or a static chart, with no ability to change it.

Areas of Applications

Computer graphics is used across a wide range of domains because pictures communicate information faster and more intuitively than text or raw numbers:

  • Computer art: paint and animation packages support designing object shapes, specifying motion, and producing cartoons, logos and paintings.
  • Computer Aided Design (CAD): buildings, automobiles, aircraft and mechanical parts are designed with accurate, detailed drawings that would be impractical to produce by hand.
  • Presentation graphics: bar charts, pie charts and time charts summarise financial, statistical, scientific and managerial data for reports.
  • Entertainment: the film and games industries use computer graphics for animated films, television shows, music videos and interactive game worlds.
  • Education and training: generated models make abstract concepts easier to visualise, and simulators let trainees practise procedures without the cost or risk of the real equipment.
  • Visualisation: scientific and statistical data is rendered visually so that patterns, trends and anomalies in the underlying process become easier to spot.
  • Image processing: existing photographs and scanned images are edited, enhanced or restored for use elsewhere.
  • Graphical User Interfaces (GUIs): icons, windows, menus and pointers built from graphics primitives make software usable by people who are not programmers.

What this unit covers

  • A Brief Overview of Computer Graphics
  • Areas of Applications
  • Graphics Hardware: Display Technology, Architecture of Raster-Scan Displays, Vector Displays, Display Processors, Hard copy device
  • Input Devices
  • Graphics Software: Software standards, Need of machine independent graphics language

Graphics Hardware

2081 · 5 marks

What do you mean by the refresh rate of a display device? Explain vector scan display with a suitable diagram. [5]

Show solved answer

Refresh Rate and Vector Scan Display


Refresh Rate

The refresh rate is the number of times a screen's displayed image is repainted or refreshed per second. It is expressed in Hertz (Hz).

For example, a refresh rate of 75 Hz means the image is refreshed 75 times per second.

The refresh rate for each display depends on the video card used.

In vector displays, the refresh rate depends on the number of lines to be displayed for any image. Vector displays are designed to draw all component lines 30 to 60 times per second.


Vector Scan Display (Random Scan Display)

Vector scan display is also known as random scan display or calligraphic display.

Working Principle

  • In this technique, the electron beam is directed only to the parts of the screen where the picture is to be drawn, rather than scanning from left to right and top to bottom (as in raster scan).
  • Picture definition is stored as a set of line-drawing commands in a memory area called the refresh display file.
  • The system reads these commands and draws each line one by one, then repeats the cycle to refresh the image.
  • It is designed to draw all component lines 30 to 60 times each second to maintain a flicker-free image.

Characteristics

FeatureDescription
Beam movementDirected only to required positions
Memory usedRefresh Display File
Refresh rate30 to 60 times per second
Output qualitySmooth lines, no aliasing
Best examplePlotter

Aliasing is the jagged appearance of primitives as displayed on a raster device. Vector displays have the advantage of absence of aliasing.


Diagram

        Electron Gun
             |
             v
     +-------+-------+
     |   Deflection   |
     |    System      |
     +-------+-------+
             |
             |  (Beam directed to specific points)
             v
  +-------------------------+
  |                         |
  |    *---------*          |  <-- Line drawn directly
  |    |         |          |
  |    *----*    *          |  <-- Only required parts lit
  |         |               |
  |         *               |
  |                         |
  +-------------------------+
         CRT Screen

  Refresh Display File:
  [ Draw Line (x1,y1)-(x2,y2) ]
  [ Draw Line (x2,y2)-(x3,y3) ]
  [ ... repeat 30-60 times/sec ]

Summary

Vector scan display produces images by drawing lines directly between specified endpoints using electron beam deflection. It stores drawing commands in a refresh display file and redraws the entire picture 30 to 60 times per second, producing high-quality, smooth line drawings without aliasing. The plotter is the best real-world example of this system.

Open this answer on its own page →

2080 · 5 marks

Calculate the total memory required to store a 5 minute video in SVGA system with 24 bit true color and 30 fps. [5]

Parameter Value ------------------ Duration 5 minutes Display system SVGA (Super VGA) Color depth 24-bit true color = 3 bytes/pixel Frame rate 30 fps SVGA standard resolution $800 \times 600$ pixels Note: "SVGA resolution" is a known standard value ($800 \times 600$), so it is supplied by the dis...

Open this answer on its own page →

2079 · 5 marks

Differentiate between raster and vector graphics method. [5]

Raster Graphics (Raster Scan System): Raster display typically has an array of addressable dots (pixels), which can be individually set to a particular color or intensity. The electron beam scans from left to right and top to bottom across the entire screen, row by row, to produce the image. Vect...

Open this answer on its own page →

2079 · 5 marks

Calculate the total memory required to store a 8 minute video in a SVGA system with 24 bit true color and 25 fps. [5]

Parameter Value ------------------ Duration 8 minutes Display system SVGA = 800 x 600 pixels Color depth 24-bit true color Frame rate 25 fps --- $$800 \times 600 = 480{,}000 \text{ pixels}$$ Each pixel = 24 bits. $$480{,}000 \times 24 = 11{,}520{,}000 \text{ bits}$$ Convert to bytes: $$\frac{11{,...

Open this answer on its own page →

2077 · 5 marks

Differentiate between vector and raster graphics. [5]

Vector Graphics: Vector displays generate images by directing the electron beam only to the specific parts of the screen where the picture is to be drawn. The picture definition is stored as a set of line-drawing commands (specified by endpoints) in a refresh display file. They are also called ra...

Open this answer on its own page →