Graphics Images
Graphics Images
GRAPHICS IMAGES
• There are basically 2 types of images produced
by a graphics system
• Geometric images
• Raster images
Geometric images
• Geometric images are
1. Lines
2. circles and
3. polygons
They are called geometric primitives because
they form the basis for all geometric objects
Raster images
• Raster images on the other hand are pixel
based.
• A pixel picture element or the smallest part of
an electronically coded element. Resolution
increases with number of bits
Colours in graphics
• The frame buffer enables various colours to be
implemented. Computer graphics is based on
the RGB colour system, a combination of
which gives various colours of an image.
RASTA IMAGE
what is a raster image
• A raster image is simply a 2D array that stores
the pixel value for each pixel—usually a color
stored as three numbers, for red, green, and
blue.
Ideal Vector
Drawing Drawing Outline Filled
Ray tracing
• In computer graphics, ray tracing is a
technique for generating an image by tracing
the path of light through pixels in an image
plane and simulating the effects of its
encounters with virtual objects.
Ray tracing
Ray Tracing
• One of the basic tasks of computer graphics is
rendering three-dimensional objects: taking a
scene, or model, composed of many
geometric objects arranged in 3D space and
producing a 2D image that shows the objects
as viewed from a particular viewpoint
• It is the same operation that has been done
for centuries by architects and engineers
creating drawings to communicate their
designs to others.
• Fundamentally, rendering is a process that
takes as its input a set of objects and produces
as its output an array of pixels. One way or
another, rendering involves If the output is a
vector considering how each object
contributes to each pixel;
it can be organized in two general ways
1. In object-order rendering
2. In image order rendering
1. In object-order rendering, each object is
considered in turn, and for each object all the
pixels that it influences are found and
updated.
2. In image order rendering, each pixel is
considered in turn, and for each pixel all the
objects that influence it are found and the
pixel value is computed
• You can think of the difference in terms of the
nesting of loops: in image-order rendering the
“for each pixel” loop is on the outside,
whereas in object-order rendering the “for
each object” loop is on the outside.
• Image-order and object-order rendering
approaches can compute exactly the same
images, but they lend themselves to
computing different kinds of effects and have
quite different performance characteristics
• Ray tracing is an image-order algorithm for
making renderings of 3D scenes,
END OF LECTURE