computer graphics - university of oulujiechen/course/lecture1/cg_instruction-c...• computer...

Post on 21-Apr-2020

11 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

C O M P U T E R G R A P H I C S

Guoying Zhao 1 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 1 / 58

Computer Graphics

Introduction I

C O M P U T E R G R A P H I C S

Guoying Zhao 2 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 2 / 58

A Survey of Computer Graphics

• What is computer graphics?• Interactive computer graphics• The history of computer graphics• Computer graphics applications• Device

C O M P U T E R G R A P H I C S

Guoying Zhao 3 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 3 / 58

What is Computer Graphics?

• Some possible definitions:– Approaches, Methods, Technics and Tools for virtual

world visualization– Generating 2D images of a 3D world represented in

computer• Main tasks

– Modeling: construct the 3D model of the scene– Rendering: compute the color of each pixel– Animation

C O M P U T E R G R A P H I C S

Guoying Zhao 4 / 58

What is Computer Graphics? (1/2)• Computer graphics generally means creation, storage and manipulation of

models and images• Such models come from diverse and expanding set of fields including

physical, mathematical, artistic, biological, and even conceptual (abstract) structures

Frame from animation by William Latham, shown at SIGGRAPH 1992. Latham uses rules that govern patterns of natural forms to create his artwork.

C O M P U T E R G R A P H I C S

Guoying Zhao 5 / 58

• William Fetter coined term “computer graphics” in 1960 to describe new design methods he was pursuing at Boeing

• Created a series of widely reproduced images on pen plotter exploring cockpit design, using 3D model of human body.

“Perhaps the best way to define computer graphics is to find out what it is not. It is not a machine. It is not a computer, nor a group of computer programs. It is not the know-how of a graphic designer, a programmer, a writer, a motion picture specialist, or a reproduction specialist.

Computer graphics is all these – a consciously managed and documented technology directed towardcommunicating information accurately and descriptively.”

Computer Graphics, by William A. Fetter, 1966

What is Computer Graphics? (2/2)

C O M P U T E R G R A P H I C S

Guoying Zhao 6 / 58

What is Interactive Computer Graphics? (1/3)

• User controls contents, structure, and appearance of objects and their displayed images via rapid visual feedback

• Basic components of an interactive graphics system– input (e.g., mouse, tablet and stylus, force feedback device, scanner, live video streams…)– processing (and storage)– display/output (e.g., screen, paper-based printer, video recorder, non-linear editor…)

• First truly interactive graphics system, Sketchpad, pioneered at MIT by Ivan Sutherland for his 1963 Ph.D. thesis

Sketchpad in 1963. Note use of a CRT monitor, light pen and function-key panel.

C O M P U T E R G R A P H I C S

Guoying Zhao 7 / 58

• Before Sketchpad, output via plotters/printers, input via keypunch, both in batch

Card punching (left). IBM 704 (right) took up a whole room and was capable of about 4,000 arithmetic operations/second.

Cool facts: Whirlwind, built in early 50’s at MIT, cost $4.5 million and could perform 40,000 additions/second. Mac 512K, list price $3,195 in 1984, could do 500,000.

Batch (1950s – now)

What is Interactive Computer Graphics? (2/3)

C O M P U T E R G R A P H I C S

Guoying Zhao 8 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 8 / 58

The Graphics Process

C O M P U T E R G R A P H I C S

Guoying Zhao 9 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 9 / 58

Modeling

Modeling with Maya

C O M P U T E R G R A P H I C S

Guoying Zhao 10 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 10 / 58

Modeling

Modeling from image

C O M P U T E R G R A P H I C S

Guoying Zhao 11 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 11 / 58

Modeling

The tree model(a) without leaves (b) with leaves

C O M P U T E R G R A P H I C S

Guoying Zhao 12 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 12 / 58

Modeling---Geometry Processing

C O M P U T E R G R A P H I C S

Guoying Zhao 13 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 13 / 58

Rendering

Indirect diffusion Caustic effect

C O M P U T E R G R A P H I C S

Guoying Zhao 14 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 14 / 58

Rendering

“A Rapid Hierarchical Rendering Technique for Translucent Materials”. Jensen, Siggraph’2002

C O M P U T E R G R A P H I C S

Guoying Zhao 15 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 15 / 58

Rendering

C O M P U T E R G R A P H I C S

Guoying Zhao 16 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 16 / 58

Questions

• Graphics Vs. Image ?- geometric elements and attributes

- pixel arrays

• Computer Graphics Vs. Image Processing– CG : 3D Models -> rendering -> images– I. P : 2D images -> analysis -> models(other

information, special effects...)

C O M P U T E R G R A P H I C S

Guoying Zhao 17 / 58

The History of Computer Graphics

Pioneer: Ivan Sutherland1963: Sutherland’s PhD Thesis:“Sketchpad: A Man-machine Graphical Communications System.”, MIT,1963

First time used “Computer Graphics”. CG started to be a novel and independent scientific branch.

C O M P U T E R G R A P H I C S

Guoying Zhao 18 / 58

Pioneer:Ivan Sutherland

• First truly interactive graphics system, Sketchpad, pioneered at MIT by Ivan Sutherland for his 1963 Ph.D. thesis

Sketchpad in 1963. Note use of a CRT monitor, light pen and function-key panel.

C O M P U T E R G R A P H I C S

Guoying Zhao 19 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 19 / 58

The History of Computer Graphics

• Poineer: Ivan Sutherland• 1962: Pierre Bezier put forward “Bezier curve” for the

representation of space curve• 1967: Wylie added lighting effect in objects representation• 1969: Xerox developed GUI (Graphic User Interface)• 1973: Richard Shoup invented Raster-Scan Display• The great improvement of graphic techniques

– Phong lighting model(1973);Texture mapping(1974);Ray tracing(1980);Radiosity(1984)…

C O M P U T E R G R A P H I C S

Guoying Zhao 20 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 20 / 58

The History of Computer Graphics• Industry

– ILM(Industrial Light and Magic): an Academy Award winning motion picture visual effects company,1975

– SGI (Silicon Graphics, Inc): 1982– Pixar 1986– AutoDesk, Adobe

• Display card– 1994: the first PC display card --- by 3DLabs– 1995.11: Voodoo --- by 3DFx– 1999: Geforce256, the first GPU --- by nVidia– nVidia and ATI

• Geforce 8800、Radeon HD 2900 XT

C O M P U T E R G R A P H I C S

Guoying Zhao 21 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 21 / 58

The History of Computer Graphics

• Graphics Standard– GKS(Germany, 1970’s); PHIGS(ISO,

1986); GKS-3D(1988)– OpenGL(SGI, 1992); DirectX(Microsoft);

Java3D(Sun)• Graphics Application Software

– 3DS Max, Maya, LightWave 3D– Renderman– AutoCAD, Solid Work

C O M P U T E R G R A P H I C S

Guoying Zhao 22 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 22 / 58

Computer Graphics Applications

• Computer Aided Design/Manufacturing• Entertainment• Education&Science and Training• Visualization in Scientific Computing• Graphical User Interface• ……

C O M P U T E R G R A P H I C S

Guoying Zhao 23 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 23 / 58

Computer Aided Design/Manufacturing (CAD/CAM)

• Computer aided design in airplane, car, watercraft, architecture, costume, toy…

C O M P U T E R G R A P H I C S

Guoying Zhao 24 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 24 / 58

CAD/CAM

• Boeing 777(1990.10 – 1994.4)– All the designing work is in computer

graphics stations and terminals– No paper

• Boeing 747(comparing)– 16320 meters paper!

C O M P U T E R G R A P H I C S

Guoying Zhao 25 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 25 / 58

CAD/CAM

Computer aided design/Manufacturing in airplane

C O M P U T E R G R A P H I C S

Guoying Zhao 26 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 26 / 58

CAD/CAM

Computer aided architecture design

C O M P U T E R G R A P H I C S

Guoying Zhao 27 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 27 / 58

CAD/CAM

Computer aided design in shoe Manufacturing

C O M P U T E R G R A P H I C S

Guoying Zhao 28 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 28 / 58

Entertainment

• Movies, Animations• Games• NPR (Non-Photorealistic Rendering)• ……

C O M P U T E R G R A P H I C S

Guoying Zhao 29 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 29 / 58

Special Effects in Movie

Jurassic Park(1993)

C O M P U T E R G R A P H I C S

Guoying Zhao 30 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 30 / 58

Special Effects in Movie

Titanic (1997)

C O M P U T E R G R A P H I C S

Guoying Zhao 31 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 31 / 58

3D Animation Movie

Monster’s Inc. (2001)Toy story (1995)

C O M P U T E R G R A P H I C S

Guoying Zhao 32 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 32 / 58

3D Animation Movie

Final Fantasy (2001)Skin Hair

C O M P U T E R G R A P H I C S

Guoying Zhao 33 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 33 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 34 / 58

Beijing Olympics opening ceremony

C O M P U T E R G R A P H I C S

Guoying Zhao 35 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 35 / 58

Games

C O M P U T E R G R A P H I C S

Guoying Zhao 36 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 36 / 58

NPR (Non-Photorealistic Rendering)

Calligraphy generated using computers

Toon Shading

C O M P U T E R G R A P H I C S

Guoying Zhao 37 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 37 / 58

Education & Science and Training

• Computer Aided Education and Science– Computer simulating the phenomenon in

biology, geography, physics, chemistry, medicine, political social, economy and other sciences

• Computer Aided Training– System for training of ship captains, aircraft

pilots …

C O M P U T E R G R A P H I C S

Guoying Zhao 38 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 38 / 58

NMT

Fractal modelsAerial views

Computer Graphics in Geography

• Terrain Generation

Landsat

C O M P U T E R G R A P H I C S

Guoying Zhao 39 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 39 / 58

Google Earth

C O M P U T E R G R A P H I C S

Guoying Zhao 40 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 40 / 58

Structure of Protein

C O M P U T E R G R A P H I C S

Guoying Zhao 41 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 41 / 58

Computer Aided Training

C O M P U T E R G R A P H I C S

Guoying Zhao 42 / 58

War games

C O M P U T E R G R A P H I C S

Guoying Zhao 43 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 43 / 58

Visualization in Scientific Computing

• Producing graphical representations for scientific, engineering and medical data sets and processes

C O M P U T E R G R A P H I C S

Guoying Zhao 44 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 44 / 58

Application --- Hydrodynamic

The air current around a car

C O M P U T E R G R A P H I C S

Guoying Zhao 45 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 45 / 58

Application --- Hydrodynamic

C O M P U T E R G R A P H I C S

Guoying Zhao 46 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 46 / 58

Application --- Weather

http://www.ssec.wisc.edu/~billh/vis5d.html

The isolines exhibit the distribution of atmospheric pressure

C O M P U T E R G R A P H I C S

Guoying Zhao 47 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 47 / 58

Application --- Medical

The visible human project

C O M P U T E R G R A P H I C S

Guoying Zhao 48 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 48 / 58

Graphical User Interface(GUI)

3D operating system

C O M P U T E R G R A P H I C S

Guoying Zhao 49 / 58

Graphic Devices in Computer System

C O M P U T E R G R A P H I C S

Guoying Zhao 50 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 50 / 58

Graphic Devices in Computer System

• CPU– CPU implements all kinds of computations about

graphics such as description, construction and modification

• GPU(Graphic Processing Unit)• Video Display Devices• Input Devices

C O M P U T E R G R A P H I C S

Guoying Zhao 51 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 51 / 58

Video Display Devices

• Primary Output Device– Cathode ray tube(CRT) based display– Liquid-Crystal Display– Plasma panels

• Steroscopic Display• Three Dimensional Viewing Devices

C O M P U T E R G R A P H I C S

Guoying Zhao 52 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 52 / 58

Steroscopic Viewing Devices

C O M P U T E R G R A P H I C S

Guoying Zhao 53 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 53 / 58

Three Dimensional Viewing Devices

C O M P U T E R G R A P H I C S

Guoying Zhao 54 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 54 / 58

• Transport 3D display system• built by Hitachi Human Interaction

Laboratory (HHIL)

Three Dimensional Viewing Devices

C O M P U T E R G R A P H I C S

Guoying Zhao 55 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 55 / 58

Graphic Devices in Computer System

• CPU• GPU(Graphic Processing Unit)• Video Display Devices: output devices• Input Devices

C O M P U T E R G R A P H I C S

Guoying Zhao 56 / 58

C O M P U T E R G R A P H I C S

Guoying Zhao 56 / 58

Input Devices• Primary Input Devices

– Keyboard, Mouse, Trackball, Spaceball, Joysticks, Digitizers, Light Pen, Scan machine, Touch panel, Voice System

– Data Gloves, Sensor, Tracker, Force Feedback

C O M P U T E R G R A P H I C S

Guoying Zhao 57 / 58

3D mouse Data glove

Force Feedback Device

C O M P U T E R G R A P H I C S

Guoying Zhao 58 / 58

Important conference:

SIGGRAPH(Special Interest Group on GRAPHics and Interactive Techniques)

top related