1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information...

50
1 Chapter 1: Graphics Systems and Models

Transcript of 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information...

Page 1: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

1

Chapter 1: Graphics Systems and Models

Page 2: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

2

Applications of C. G. – 1/4 Display of information

Maps GIS (geographic information system) CT (computer tomography) MRI (magnetic resonance imaging) PET (positron-emission tomography) Fluid flow, molecular biology, mathematics

Page 3: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

3

Display of Information

Page 4: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

4

Applications of C. G. – 2/4 Design

CAD (computer-aided design): VLSI (very-large-scale integrated) circuits

Together with other tools:architecture or interior design

Page 5: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

5

Interior Design

Page 6: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

6

Applications of C. G. – 3/4 Simulation and animation

Flight simulation – pilot training Games and educational software Benefits:

Less cost Less danger, e.g. combination with the VR (virtual

reality) techniques can help surgical interns and astronauts

Page 7: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

7

Applications of C. G. – 4/4 User interfaces

Friendly working environment:windows, icons, menus, pointing devices

Page 8: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

8

A Graphics System

Page 9: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

9

Pixels

Page 10: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

10

Frame Buffer High-end systems: VRAM or DRAM Simpler systems: part of memory Depth: the number of bits per pixel True color: depth=24 Resolution: the number of pixels in the

frame buffer

Page 11: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

11

Rasterization or Scan-conversion Conversion of geometric entities to pixels

in the frame buffer High-end systems

Special-purpose processors

Simpler systems A single and shared processor

Page 12: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

12

Output Devices – 1/2

CRT (Cathode-ray tube)

Page 13: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

13

Output Devices – 2/2 CRT

Refresh: at least 50 times per second Interlace and non-interlace systems Color CRTs have three colored phosphors and a

shadow mask Other raster devices:

LCD (liquid-crystal displays) Plasma panels and digital projection systems Non-refreshable: printers and plotters

Page 14: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

14

Shadow-mask CRT

Page 15: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

15

Input Devices Mouse Joystick Data tablet Anything else?

Hand Foot Voice Mind?

Page 16: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

16

Images: Physical and Synthetic Image formation

Lighting Shading Properties of materials

Page 17: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

17

Objects and Viewers – 1/3 Object: formed from geometric primitives

Points, lines, polygons Vertex (pl. Vertices) is the most primitive one

Viewer: Locations Viewing angles

Page 18: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

18

Objects and Viewers – 2/3

Page 19: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

19

Objects and Viewers – 3/3

3D world 2D image

Page 20: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

20

Light and Images

Page 21: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

21

Electromagnetic Spectrum

Page 22: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

22

Single Point Light Source

Page 23: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

23

Ray Tracing Penetrating transparent surfaces

Reflected by

Mirrors

Diffuse surfaces

Refracted

Absorbed

Page 24: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

24

Human Visual System

Visual system does not have the same response to each color.We are most sensitive to green light

Page 25: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

25

Pinhole Camera – 1/2

Page 26: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

26

Pinhole Camera – 2/2

dz

xx

dz

yy

p

p

/

/

d

h

2tan2 1

(xp, yp, -d) is the projection of (x, y, z)

Page 27: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

27

Synthetic-camera Model – 1/4

Bellows Camera Projector

Page 28: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

28

Synthetic-camera Model – 2/4

COP(Center of Projection)

Focal Length

Page 29: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

29

Synthetic-camera Model – 3/4

Film Plane

Projection Plane

Page 30: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

30

Synthetic-camera Model – 4/4Clipping Window

Page 31: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

31

Programmer’s Interface

Interface for a painting program

Page 32: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

32

Application Programmer’s Interface

Specifications of the functions in the graphics library

Page 33: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

33

Three-dimensional APIs Objects Viewers Light sources Material properties

Page 34: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

34

Camera(Viewer) Specifications Position (COP) Orientation Focal length Film plane

Page 35: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

35

Sequence of Images Wireframe Flat shading

HSR (Hidden surface removal) Smooth shading Curves and surfaces

NURBS, Bezier curves/surfaces Texture mapping

Bump mapping, environmental maps, antialiasing…

Page 36: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

36

Wireframe

Page 37: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

37

Flat Shading

Page 38: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

38

Smooth Shading

Page 39: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

39

Modeling With Curves/surfaces

Page 40: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

40

Bump Mapping

Page 41: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

41

Environmental Maps

Page 42: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

42

Antialiasing

Page 43: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

43

Modeling-rendering Paradigm

Example: Scene graph

Page 44: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

44

Graphics Architecture – 1/3

Early graphics system

Computeline segments

Drawline segments

Very high rate to avoid flickering

Page 45: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

45

Graphics Architecture – 2/3

Display-processor architecture

Page 46: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

46

Graphics Architecture – 3/3

Arithmetic pipeline: doubling the throughput!

Pipeline Architecture: Geometric pipeline

Page 47: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

47

Geometric Pipeline – 1/2 Transformation

Conversion between coordinate systems Translation, rotation, scaling Aggregate transforms by matrix multiplications

Clipping Could be further pipelined

Page 48: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

48

Geometric Pipeline – 2/2 Projection

Remaining 3D objects are projected into 2D objects

Parallel or perspective projections Rasterization

Convert 2D objects into pixels

Page 49: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

49

Performance Characteristics Latency Throughput:

How fast we can move geometric entities through the pipeline

How many pixels per second we can alter in the frame buffer

Pipeline architecture is not a must Ray tracing or radiosity for better quality

Page 50: 1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)

50

Summary & Notes of Chapter 1 Application of computer graphics A graphics system Human visual system Pinhole and synthetic camera models Image formation Geometric pipeline Realistic images may require resolution of up

to 40006000