introduction to computer graphics chapter 1. agenda definition environment for interactive graphics...

43
Introduction to Computer Graphics Chapter 1

Upload: joanna-small

Post on 05-Jan-2016

226 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Introduction to Computer Graphics

Chapter 1

Page 2: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Agenda• Definition• Environment for Interactive Graphics• Computer Graphics Applications• Classification of applications• Image Types

2

Page 3: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

3

Definition (1)• Computer Graphics is an environment that

allows to create, store and manipulate models and images of objects using interactive input devices.

• These models come from a diverse set of fields, and include physical, mathematical, engineering, architectural, and conceptual structures.

Page 4: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Definition (2)• Manipulation includes adding, deleting

and updating objects.

• Model is a simplified representation of the reality.

• Modeling is a process that permits to transform real-world facts into objects that are understandable by the computer.

4

Page 5: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Computer graphics is largely interactive: the user controls the contents, structure, and appearance of objects and of their displayed images by using input devices, such as a keyboard, mouse, or touch-sensitive panel on the screen.

Application

Model

Application

Program

Graphics

system

CPU

Input Devices

Output Devices

Users

5

Definition (3)

Page 6: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Environment for Interactive Graphics

• Computer Graphics (like any other computer system) has two aspects: Hardware aspect and Software aspect.

• At the hardware level, a computer receives input from interaction devices, and outputs images to a display device.

6

Page 7: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

7

Environment for Interactive Graphics

The software has three components:

• The application model

• The application program

• The graphics system

Page 8: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

8

Application Model (1)• The application model represents data or

objects to be pictured on the screen.

• Models typically store descriptions of primitives (points, lines, circles and polygons in 2D and 3D) that define the shape of components of the object, object attributes such as line style, color, thickness, and connectivity relationships and positioning data that describe how the components fit together.

Page 9: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Application Model (2)• Some graphics systems support some

geometric models: lines, rectangles, polygons, circles, ellipses, and text in 2D, and polygons.

• Advanced graphics systems support additional primitives, including curves and surfaces defined by polynomials of higher degrees.

9

Page 10: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

10

Application Program• The application program creates,

stores into and retrieves data from the first component, that is, application model.

• It also handles user input and sends views to the third component (Graphics system).

Page 11: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Graphics System

• The graphics system contains both a detailed geometric description of what is to be viewed and the attributes describing how the objects should appear.

11

Page 12: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

12

Computer Graphics Applications1) Graphs and Charts2) Computer Aided Design3) Virtual–Reality Environments4) Data Visualizations5) Education and Training6) Computer Art7) Entertainment8) Image Processing9) Graphical User Interface10) Graphics Workstations and Viewing Systems11) A Realistic Object With Illumination Effects12) Modeling Characteristics of Object13) Rendering14) Modeling and Rending Stages in the Simulation15) Color Model

Page 13: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

13

1.1 Graphs and ChartsThe display of simple data graphsGraphs are commonly usedTo summarize, financial, Statistical, Mathematical, scientific, engineering and economic data for research report, managerial summaries, consumer information bulletins, and other types of publications.

Page 15: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.3 Virtual–Reality Environments

15

The creation of virtual-reality environments in which the user can interact with the objects in a 3-dimensional scene.

Page 21: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.9 Graphical User Interface

21

A major component of a graphical interface is a window manager that allows user to display multiple, rectangle screen areas, called display windows.

Page 22: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.10 Graphics Workstations and Viewing Systems

22

The 360º viewing screen in the NASA airport control-tower simulator, called the Future Flight Central Facility.

Page 23: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.11 A Realistic Object With Illumination Effects

23

Super-ellipsoids plotted with values for parameters s1 and s2 ranging from 0.0 to 2.5 and with rx = ry = rz .

Page 24: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.12 Modeling Characteristics of Object

24

Modeling the characteristics of (a) cotton, (b) wool, and (c) polyester cotton using energy-function minimization.

Page 25: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Example of Modeling Characteristics of Object

25

Diffuse reflections from a spherical surface illuminated by a point source emitting white light, with values of the diffuse reflectivity coefficient in the interval 0 ≤ kd ≤ 1.

Page 26: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.13 Rendering

26

• Rendering is the process of generating an image from a model (or models in what collectively could be called a scene file), by means of computer programs.

• Also, the results of such a model can be called a rendering.

• A scene file contains objects in a strictly defined language or data structure; it would contain geometry, viewpoint, texture, lighting, and shading information as a description of the virtual scene.

Page 27: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Example of Rendering

27

Page 28: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.14 Modeling and Rending Stages in the Simulation

28

Simulation is the imitation of the operation of a real-world process or system over time. The act of simulating something first requires that a model be developed; this model represents the key characteristics or behaviors/functions of the selected physical or abstract system or process. The model represents the system itself, whereas the simulation represents the operation of the system over time.

Page 29: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

1.15 Color Model

29

The RGB color model is an additive color model in which red , green , and blue ... palette of 216 RGB colors, defined by the Netscape Color Cube.

Page 30: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Classification of applications (1)There are three classifications for applications:

• The first classification is by type of the object (2D, 3D) to be represented and the kind of picture (line, color, shadow …) to be produced.

• The second classification is by type of interaction, which determines the user’s degree of control over the object and its image.

• With interactive plotting, the user can create new objects, using other existing components, and then moves around to get a desired view.

30

Page 31: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Classification of applications (2)

• The third classification is by the role of the picture, which determines whether the picture is an end in itself or a means to an end.

• Some pictures are end products while others are intermediate products to other products.

31

Page 32: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Image Types

Three Types of image are commonly used:

− GIF (Graphics Interchange Format)

− JPG or JPEG (Joint Photographic Experts Group)

− PNG (Portable Network Graphics)

− TIF or TIFF (Tagged Image File Format)

A new format, SVG (Scalable Vector Graphics), is

not yet in common use

Page 33: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Properties of images (1)

Page 34: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Properties of images (2)• Compression quality - Lossy for smallest files (JPG),

or Lossless for best quality images (TIF, PNG).

• Full RGB color for photos (TIF, PNG, JPG),   or Indexed Color for graphics (PNG, GIF, TIF).

• 16-bit color (48-bit RGB data) is sometimes desired (TIF and PNG).

• Transparency or Animation is used in graphics (GIF and PNG).

• Documents - line art, multi-page, text, fax, etc - this will be TIF.

• CMYK color is certainly important for commercial prepress (TIF).

Page 35: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

GIF (Graphics Interchange Format)

• GIF uses a lossless compression technique, meaning that no color information is discarded when the image is compressed

• The color depth of GIF is 8-bit, allowing a palette of no more than 256 colors

• GIF excels at compressing and displaying flat color areas, making it the logical choice for line art and color graphics

Page 36: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

GIF Transparency• With GIF files, you can choose any color

in an image to appear as transparent in the browser

• The background color or pattern will show through the areas that you have designated as transparent

• Using transparent areas allows you to create graphics that appear to have an irregular outside shape, rather than being bounded by a rectangle

Page 37: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

Transparent and nontransparent GIFs

Page 38: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

GIF Animation• The GIF format lets you store multiple

images and timing information about the images in a single file

• This means that you can build animations consisting of multiple static images that play continuously, creating the illusion of motion

Page 39: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

JPG or JPEG (Joint Photographic Experts Group)

• JPG is best for photographs or continuous tone images

• JPGs are 24-bit RGB images that allow millions of colors

• JPGs use a “lossy” compression routine especially designed for photographic images– When the image is compressed, some color information

is discarded, resulting in a loss of quality from the original image

Page 40: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

JPG (continued) • JPEG always uses lossy compression,

but its degree is selectable, for higher quality and larger files, or lower quality and smaller files.

• JPG is for photo images, and is the worst possible choice for most graphics or text data.

• Digital cameras and web pages normally use JPG files.

Page 41: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

PNG (Portable Network Graphics)

• A royalty-free file format that is intended

to replace GIF

• This lossless format compresses 8-bit

images to smaller file sizes than GIF

• PNG supports transparency and

interlacing but not animation

Page 42: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

TIF Image• TIF is lossless which is considered the highest quality

format for commercial work. • TIF simply has no JPG artifacts, no additional losses

or JPG artifacts to degrade and detract from the original.

• TIF is the most (versatile) adaptable, except that web pages don't show TIF files.

• TIF does most of anything you might want, from 1-bit to 48-bit color, RGB, CMYK, LAB, or Indexed color.

• Most any of the "special" file types (for example, camera RAW files, fax files, or multipage documents) are based on TIF format.

Page 43: Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications

SVG (Scalable Vector Graphics)• A new standard from the W3C• A language for describing two-

dimensional graphics using XML• SVG graphics are scalable to different

display resolutions and are printable• Not yet supported by most browsers