Lecture 3 - Graphics Systems
Lecture 3 - Graphics Systems
Graphics Systems
Associate Professor
Dr. Ashraf Abdelaziz Taha
• Main tasks:
• Modeling (Shape): Creating and representing the geometry of
objects in the 3D world
• Rendering (Light, Perspective): Generating 2D images of the objects.
• Animation (Movement) describing how objects change in time.
-2-
Types of Graphics
• Bitmap Graphics
• Vector Graphics
-3-
Bitmap
• Image is represented as a grid of points (pixels).
• If you start with a small image (100 x 100 px)
Assumption: As the image is made not zooming resizing larger by
• Squares become larger , edges more rough.
• Quality decreases
• File size increase
-4-
Vector
Vector Graphics
• Image is represented with lines and arcs that have a relationship
• Describing the drawing of the shape
-5-
Vector
• It doesn’t matter what size the image is !! smaller larger resized
As the image is
• Edges clean
• Quality is maintained
-6-
• Vector or Bitmapped?
• Vector-based:
• Suitable for drawings that will be sized often
• Greater control and precision with free-hand tool
• Display more accurately on screen/paper/ads (can be redrawn with accuracy
without loss of quality)
• Download faster because of .svg format (less info recorded smaller file)
• More details can be drawn in vector-based illustrations
• Must use a “Draw” program – draw and edit paths
• Adobe Illustrator or Macromedia FreeHand, Corel Draw
• Common formats: .eps, .cdr (CorelDraw) .dwg (Autocad)
-8-
• Remember:
-9-
How does a computer represent numbers and words and images and sound?
2x = Y values
= Maximum number of colors available to
assign to a pixel to represent image
-11-
Animation - Some Terminology
• Purpose: the animator or editor can make decisions on how to create or change
an image based on the previous image in the sequence.
-12-
Animation - Some Special Effects
• Morphing :
A special effect in motion pictures and animations that changes (or morphs)
one image or shape into another through a seamless transition.
-13-
Animation - Some Special Effects
Warping:
• Distorts a single image
• Warp frown into smile
• warping means that points are mapped to points without changing the colors.
• Images may be viewed as if they had been projected onto a curved or mirrored surface
-14-
Animation - Some Special Effects
-15-
Vector Graphics
-16-
Raster Graphics
-17-
Display Technologies
• Vector Displays
Advantages:
A CRT (Cathode Ray Tube) has the electron beam to create a line image
on the CRT screen
• Produce smooth line drawings.
• High Resolution
Disadvantages:
Random-Scan monitors cannot display realistic shades scenes.
-18-
Display Technologies
Raster Displays
• Raster: A rectangular array of points or dots
• Pixel: One dot or picture element of the raster
• Scan line: A row of pixels
-19-
Graphics Software
• Special-purpose programs
• Photoshop, Powerpoint, AutoCAD, StudioMax, Maya, Blender, PovRay, …
20
Raster-Scan Graphic System
21
Double buffering
22
Frame Buffer
23
24