• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 38 pages
Exam (elaborations)

Summary Interactive Computer Graphics

Document preview thumbnail
Preview 4 out of 38 pages

Chapter 1 Computer graphics is concerned with all aspects of producing pictures or images using a computer. 1.1 Applications of Computer Graphics The development of computer graphics has been driven both by the needs of the user community and by advances in hardware and software. The application of computer graphics can be divided into four, possibly overlapping, areas: 1. Display of information: Some examples include: • Maps are used to display celestial and geographical information. • Statistical plots are generated to aid the viewer in determining information in a set of data. • Medical imaging technologies, such as CT, MRI, ultrasound, and PET. 2. Design: Professions such as engineering and architecture use computer-aided design (CAD) tools to create interactive technical drawings. 3. Simulation and animation: Graphical flight simulators have proved both to increase safety and to reduce training expenses. Computer graphics are also used for animation in the television, motion-pictures, and advertising industries. Virtual reality (VR) technology allows the viewer to act as part of a computer-generated scene. 4. User interfaces: Our interaction with computers has become dominated by a visual paradigm that includes windows, icons, menus, and a pointing device, such as a mouse. 1.2 A Graphics System The six major components of a basic graphics system are: 1. Input devices; 2. Central Processing Unit (CPU); 3. Graphics Processing Unit (GPU); 4. Memory; 5. Frame buffer; 6. Output devices. In a graphics program, we can obtain the measure (what the device returns) of an input device in three distinct modes: 1. Request mode: The measure of the device is not returned to the program until the device is triggered. A trigger of a device is a physical input on the device with which the user can signal the computer. 2. Sample-mode: As soon as the function call of a function that expects device input is encountered, the measure is returned. 3. Event-mode: Each time that a device is triggered, an event is generated and the device measure, including the identifier for that device, is placed in an event queue. Periodically the queue is polled, and for each (if any) event in the queue, the program can look at the event’s type and then decide what to do. Both request- and sample-mode input APIs require that the user identify which device is to provide the input, and, are thus not sufficient for modern computing environments

Content preview

Summary Interactive Computer Graphics


Chapter 1
Computer graphics is concerned with all aspects of producing pictures or images using a computer.

1.1 Applications of Computer Graphics
The development of computer graphics has been driven both by the needs of the user community
and by advances in hardware and software.

The application of computer graphics can be divided into four, possibly overlapping, areas:
1. Display of information: Some examples include:
• Maps are used to display celestial and geographical information.
• Statistical plots are generated to aid the viewer in determining information in a set
of data.
• Medical imaging technologies, such as CT, MRI, ultrasound, and PET.
2. Design: Professions such as engineering and architecture use computer-aided design (CAD)
tools to create interactive technical drawings.
3. Simulation and animation: Graphical flight simulators have proved both to increase safety
and to reduce training expenses. Computer graphics are also used for animation in the
television, motion-pictures, and advertising industries. Virtual reality (VR) technology allows
the viewer to act as part of a computer-generated scene.
4. User interfaces: Our interaction with computers has become dominated by a visual
paradigm that includes windows, icons, menus, and a pointing device, such as a mouse.

1.2 A Graphics System
The six major components of a basic graphics system are:
1. Input devices;
2. Central Processing Unit (CPU);
3. Graphics Processing Unit (GPU);
4. Memory;
5. Frame buffer;
6. Output devices.

In a graphics program, we can obtain the measure (what the device returns) of an input device in
three distinct modes:
1. Request mode: The measure of the device is not returned to the program until the device is
triggered. A trigger of a device is a physical input on the device with which the user can
signal the computer.
2. Sample-mode: As soon as the function call of a function that expects device input is
encountered, the measure is returned.
3. Event-mode: Each time that a device is triggered, an event is generated and the device
measure, including the identifier for that device, is placed in an event queue. Periodically the
queue is polled, and for each (if any) event in the queue, the program can look at the event’s
type and then decide what to do.
Both request- and sample-mode input APIs require that the user identify which device is to provide
the input, and, are thus not sufficient for modern computing environments.



Page 1 of 38

,Summary Interactive Computer Graphics


Raster based graphics system: The image we see on the output device is an array – the raster – of
pixels produced by the graphics system. Each pixel corresponds to a unique location in the image.
Collectively, the pixels are stored in a part of memory called the frame buffer. Resolution refers to
the number of pixels in the frame buffer, and it determines the detail that you can see in the image.
The depth, or precision of the frame buffer, defined as the number of bits used per pixel, determines
properties such as how many colours can be represented on a given system. In full-colour (also
known as true-colour or RGB-colour) systems, there is at least 24 bit per pixel.

The frame buffer is actually a collection of buffers: Colour buffers hold the coloured pixels that are
displayed; depth buffers hold information needed for creating images from three-dimensional data;
and other special purpose buffers, such as accumulation buffers, etc..

Rasterization (or scan conversion) is the process of converting geometric entities to pixel colours and
locations in the frame buffer.

Non-interlaced display: The pixels are displayed row by row, or scan line by scan line at the refresh
rate. I.e. all the rows are refreshed.

Interlaced display: Odd rows and even rows are refreshed alternatively.

1.3 Images: Physical and Synthetic
Computer-generated images are synthetic or artificial, in the sense that the objects being imaged do
not exist physically.

Two basic entities must be part of any image-formation process, be it mathematical or physical:
• Object: It exists in space independent of any image-formation process and of any viewer. We
define a synthetic object by specifying the positions in space, called vertices, of various
geometric primitives (points, lines, and polygons) that, when put together, approximate the
object. CAD systems make it easy for a user to build synthetic objects.
• Viewer: It is the viewer that forms the image of our objects. Viewers placed at different
positions, will see different images of the same object.

Projection (image formation): The process by which the specification of an object is combined with
the specification of a viewer to produce a two-dimensional image.

Visible light has wavelengths in the range of 350 to 780 nanometres (nm). Distinct frequencies
within this range are visible as distinct colours. Wavelengths in the middle of the range, around 520
nm, are seen as green; those near 450 nm are seen as blue; and those near 650 nm are seen as red.

Light sources can emit light either as a set of discrete frequencies or continuously. A particular light
source is characterized by the intensity of light that it emits at each frequency and by that light’s
directionality. An ideal point source emits energy from a single location at one or more frequencies
equally in all directions.

Light from the source strikes various surfaces of an object; the details of the interaction between
light and the surfaces of the object determine how much light is reflected, and hence the colour(s) of
the object as perceived by the viewer.



Page 2 of 38

,Summary Interactive Computer Graphics


1.4 Imaging Systems
A pinhole camera is a box with a small hole in the centre of one side of the box. The hole must be
small enough to ensure that only a single ray of light, emanating from a point, can enter it. The film
is placed inside the box, at a distance 𝑑 from the pinhole. If we orient the camera along the 𝑧-axis,
with the pinhole at the origin of the coordinate system, the projection of the point (𝑥, 𝑦, 𝑧) is
𝑥𝑑 𝑦𝑑
�𝑥𝑝 ,𝑦𝑝 , 𝑧𝑝 � = �− , − , −𝑑�
𝑧 𝑧




Infinite depth of field: Every point within the field of view is in focus.

1.5 The Synthetic Camera Model
Synthetic-camera model: A paradigm in which we look at the creation of a computer-generated
image as being similar to forming an image using an optical system, such as a camera.

To create artificial images, we need to identify a few basic principles:
• The specification of the objects is independent of the specification of the viewer.
• We can compute the image of an object using simple geometric calculations. We find the
image of a point on an object on the virtual image plane, called the projection plane, by
drawing a line, called a projector, from the point to the centre of the lens, called the centre
of projection (COP).The image of the point is located where the projector passes through the
projection plane.
• The size of the image is limited. Objects outside the field of view should not appear in the
resulting image. We place a clipping rectangle, or clipping window, in the projection plane.




Projection plane


COP
Projector
Clipping window




Page 3 of 38

, Summary Interactive Computer Graphics


1.6 The Programmer’s Interface
The interface between an application program and a graphics system can be specified through a set
of functions that resides in a graphics library. These specifications are called the application
programming interface (API). The application programmer sees only the API and is thus shielded
from the details of both the hardware and the software implementation of the graphics library.

If we are to follow the synthetic-camera model, we need functions in the API to specify the
following:
• Objects: The geometry of an object is usually defined by sets of vertices.
• A viewer: We can define a viewer or camera by specifying a number of parameters,
including: position, orientation, focal length, and the size of the projection plane.
• Light sources: Light sources are defined by their location, strength, colour, and directionality.
• Material properties: Material properties are characteristics, or attributes, of the objects, and
such properties are specified through a series of function calls at the time that each object is
defined.

Wire-frame image: Only the edges of polygons (outline) are rendered using line segments.

The modelling-rendering paradigm: The modelling of the scene is separated from the production of
the image, or the rendering of the scene. Thus, we might implement the modeller and the renderer
with different software and hardware. This paradigm has become popular as a method for
generating computer games and images over the Internet. Models, including the geometric objects,
lights, cameras, and material properties, are placed in a data structure called a scene graph that is
passed to a renderer or game engine.

1.7 Graphics Architectures
Early graphics architectures: Early graphics systems used general-purpose computers that could
process only a single instruction at a time. Its display included the necessary circuitry to generate a
line segment connecting two points. The job of the host computer was to run the application
program that computes and sends endpoint data of the line segments in the image to the display at
a rate high enough to avoid flicker on the display.

Display processors: The earliest attempts to build special-purpose graphics systems were concerned
primarily with relieving the general-purpose computer from the task of refreshing the display
continuously. The instructions to generate the image could be assembled once in the host and sent
to the display processor where they were stored in the display processor’s local memory. Thus, the
host is freed for other tasks while the display processor continuously refreshes the display.

Pipeline architecture: A pipeline comprises a series of interconnected components, each optimized
to perform a specific, or set, of operations on data moving through the pipeline. A pipeline can
provide significant performance increase when the same sequence of concurrent operations must
be performed on many, or large, data sets. That is exactly what we do in computer graphics, where
large sets of vertices and pixels must be processed. Latency is the time it takes a single data item to
pass through the pipeline. Throughput is the rate at which data flows through the pipeline.




Page 4 of 38

Document information

Uploaded on
January 25, 2023
Number of pages
38
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$3.00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LADHU
3.6
(32)
Sold
234
Followers
181
Items
683
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions