intr oduction - cornell university · ¥enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames...

11
© 2008 Steve Marschner • Cornell CS4620 Fall 2008 • Lecture 1 CS4620: Introduction to Computer Graphics Professor: Steve Marschner 1 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 • Lecture 1 Introduction 2 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 • Lecture 1 Computer graphics: The study of creating, manipulating, and using visual images in the computer. 3 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 • Lecture 1 Graphics Applications • Entertainment – film production – film effects – games • Science and engineering – computer-aided design – scientific visualization • Training & Simulation Graphic Arts Fine Art 4

Upload: others

Post on 10-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

CS4620: Introduction to Computer Graphics

Professor: Steve Marschner

1 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Introduction

2

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Computer graphics: The study of creating, manipulating, and using visual images in the computer.

3 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Graphics Applications

• Entertainment

– film production

– film effects

– games

• Science and engineering

– computer-aided design

– scientific visualization

• Training & Simulation

• Graphic Arts

• Fine Art

4

Page 2: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 5

Pixar—Toy Story

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Pixar—Ratatouille (2007)

6

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 7

Pixar—Ratatouille (2007)

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 8

Pixar—Ratatouille (2007)

Page 3: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

King Kong (Universal Pictures, 2005)—visual effects: WETA Digital

9 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 10

King Kong (Universal Pictures, 2005)—visual effects: WETA Digital

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 11 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 12

The Two Towers (New Line Cinema, 2002)—visual effects: WETA Digital

Page 4: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1id Software—Quake 4 (screenshot: Planet Quake) 13 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Electronic Arts—NBA Live 07 (screenshot: gamespy.com)

14

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 15

Crytek GmBH—advertisement for CryEngine 2 game engine

• Entertainment

– film production

– film effects

– games

• Science and engineering

– computer-aided design

– scientific visualization

• Training & Simulation

• Graphic Arts

• Fine Art

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Graphics Applications

U. of Utah—Alpha 1

16

RIT Biochem. 502—Paul Craig

Page 5: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 17

Kalju Kahn, UCSB

Simulated deformation of citrate synthase during substrate binding

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 18

Roger C. Wagner, Univ. Delaware

3D microscopyof capillariesin glomulerus of a human kidney

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Graphics Applications

Adobe P

hoto

shop [P

hoto

: P. Green

spun]

Adobe Illu

strator

• Entertainment

– film production

– film effects

– games

• Science and engineering

– computer-aided design

– scientific visualization

• Training & Simulation

• Graphic Arts

• Fine Art

19 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

NA

SA/A

mes

—A

CFS

Graphics Applications

• Entertainment

– film production

– film effects

– games

• Science and engineering

– computer-aided design

– scientific visualization

• Training & Simulation

• Graphic Arts

• Fine Art

Arm

y R

esea

rch L

ab—

IES

20

Page 6: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

• Entertainment

– film production

– film effects

– games

• Science and engineering

– computer-aided design

– scientific visualization

• Training & Simulation

• Graphic Arts

• Fine Art

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Graphics Applications

Computer aided sculpturesErgun Akleman

21 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 22

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 23

Problems in graphics

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Problems in graphics

• 2D imaging

– compositing and layering

– digital filtering

– color transformations

• 2D drawing

– illustration, drafting

– text, GUIsPOLYNOMIALS

SIGNAL PROCESSING

24

Page 7: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Problems in graphics CONT’D

• 3D modeling

– representing 3D shapes

– polygons, curved surfaces, …

– procedural modeling

[Hoppe et al. 1

993]

Headus—Cysurf

[Pru

sinkeiw

icz et al. 2001]

GRAMMARS

NUMERICALOPTIMIZATION

DIFFERENTIALGEOMETRY

25 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Problems in graphics CONT’D

• 3D rendering

– 2D views of 3D geometry

– projection and perspective

– removing hidden surfaces

– lighting simulation

Corn

ell PC

G

Hen

rik

Wan

n Jen

sen

INTEGRAL EQUATIONS

26

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Corn

ell

PC

G

27 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Henrik

Wan

n Jense

n

28

Page 8: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

• User Interaction

– 2D graphical user interfaces

– 3D modeling interfaces

– virtual reality

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Problems in graphics CONT’DT

U B

erlin

SGI—

Open

Invento

r

SPHERICAL GEOMETRY

PROJECTIVEGEOMETRY

29 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Problems in graphics CONT’D

• Animation

– keyframe animation

– physical simulation

Pixar

Enright et al. SIGGRAPH 2003

30

• Animation

– keyframe animation

– physical simulation

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Problems in graphics CONT’D

INTERPOLATION

DIFFERENTIALEQUATIONS

Pixar

Enright et al. SIGGRAPH 2003

31 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Computer graphics: Mathematics made visible.

32

Page 9: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Course Overview

33 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

In CS4620

• You will:

– explore fundamental ideas

– learn math essential to graphics

– implement key algorithms

– write cool programs

• You will not:

– learn a lot about OpenGL or DirectX(though you will use some OpenGL)

– write big programs

34

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Topics

• Rendering 3D scenes

(ray tracing as the basic model)

• Images and image processing

(featuring sampling and reconstruction)

• Geometric transformations

• The graphics pipeline

(with a slant toward understanding graphics hardware)

• Modeling in 2D and 3D

• Color science

35 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Images

• What is an image?

• Compositing

• Resampling

[Ti

ta nic

; Di

git

al D o m ai n;

vf xh

q.

co m]

36

Page 10: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Rendering

• ray tracing

• shading & shadows

• transparency

• texture mapping

[Gla

ssner

89]

37 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Geometric transformations

• affine transforms

• perspective transforms

• viewing

rotate, then translate translate, then rotate

38

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Graphics pipeline

• rasterization

• interpolation

• z-buffer

• vertex and fragment ops

APPLICATION

COMMAND STREAM

GEOMETRY PROCESSING

TRANSFORMED GEOMETRY

RASTERIZATION

FRAGMENTS

FRAGMENT PROCESSING

FRAMEBUFFER IMAGE

DISPLAY

39 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Modeling

• splines

• parametric surfaces

• triangle meshes

[Roge

rs]

40

Page 11: Intr oduction - Cornell University · ¥Enter tainment ÐÞlm pr oduction ÐÞlm effects Ðgames ¥Science and engineering Ðcomputer -aided design ÐscientiÞc visualization ¥Training

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

CS4620 Prerequisites

• Programming

– ability to read, write, and debugsmall Java programs (10s of classes)

– understanding of very basic data structures

– no serious software design required

• Mathematics

– vector geometry (dot/cross products, etc.)

– linear algebra (just basic matrices in 2-4D)

– basic calculus (simple derivatives)

– graphics is a good place to pick up some, but not all, of this

41 © 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

In CS4621

• You will also:

– implement a modeling and animation system, in groups of ~4

– learn a lot about

• subdivision surfaces

• mesh data structures

• scene data structures

• architecting good-sized interactive programs

• using OpenGL

42

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1 43

Pixar—Geri’s Game (2006)

© 2008 Steve Marschner • Cornell CS4620 Fall 2008 •!Lecture 1

Course mechanics

see web site:http://www.cs.cornell.edu/Courses/cs4620

44