Administrivia
! People, times, places, etc.
Computer Graphics
Syllabus
! What will I learn in this course?
Raster Graphics
Adam Finkelstein
Princeton University
! Getting started
Administrative Matters
Instructors
! Adam Finkelstein - CS 424, stop in any time, or email
! Jason Lawrence (TA) - CS 415, office Thur 4:30-5:30
Book
! Computer Graphics with OpenGL, Third Edition,
Donald Hearn and M. Pauline Baker,
Prentice Hall, 2004! ISBN: 0-13-015390-7
Web page
! http://www.cs.princeton.edu/courses/cos426
Coursework
Exams (30%)
! In class (Mar 10 and Apr 26)
Programming Assignments
When?
! Roughly every two weeks
Where?
Art Contest
Everybody should submit entries!
! 1 point for submitting
! 2 points for winning
How?
! Windows (017), Unix/Linux (hats), or MacOSX
! C and C++, OpenGL, GLUT
What?
! Basic feature lists
! Extra credit lists
! Art contest
Cool Images
(Brian Beck, CS 426, Sprint04)
Videos
(Jon Beyer, CS 426, Spring04)
Bloopers
(Kathleen Mulcahey, CS 426, Fall99)
Collaboration Policy
Overview:
! You must write your own code (no credit for other code)
! You must reference your sources of any ideas/code
Its OK to
Precepts
Schedule?
! Wednesday, 7-8PM
Place?
! TBA
Its NOT OK to
! Share code with another student
! Use ideas or code acquired from another sources
without attribution
Overview
Administrivia
! People, times, places, etc.
! Syllabus
! What will I learn in this course?
Introduction
What is computer graphics?
!
!
!
!
Raster Graphics
! Getting started
Applications
Applications
Entertainment
Entertainment
Computer-aided design
Computer-aided design
Scientific visualization
Scientific visualization
Training
Training
Education
Education
E-commerce
E-commerce
Computer art
Computer art
Jurasic Park
(Industrial, Light, & Magic)
Geris Game
(Pixar Animation Studios)
Quake
(Id Software)
Applications
Applications
Entertainment
Entertainment
Computer-aided design
Computer-aided design
Scientific visualization
Scientific visualization
Los Angeles Airport
Training
Education
Education
E-commerce
E-commerce
Computer art
Training
(Bob Wilhelmson,
University of Illinois at Urbana-Champaign)
Computer art
Apo A-1
(Boeing Corporation)
Applications
Applications
Entertainment
Entertainment
Computer-aided design
Computer-aided design
Scientific visualization
Scientific visualization
Driving Simulation
Training
Training
Education
Education
E-commerce
E-commerce
Computer art
Computer art
Desk Assembly
(Silicon Graphics, Inc.)
Flight Simulation
Forum of Trajan
(NASA)
Applications
Entertainment
Entertainment
Computer-aided design
Computer-aided design
Scientific visualization
Scientific visualization
Interactive Kitchen Planner
Human Skeleton
(SGI)
Applications
Training
Visible Human
(National Library of Medicine)
Training
(Matsushita)
Education
Education
E-commerce
E-commerce
Computer art
Computer art
Virtual Phone Store
(Lucent Technologies)
Blair Arch
(Marissa Range 98)
Syllabus
I. Image processing
Raster Graphics
! Display devices
! Color models
II. Rendering
III. Modeling
Rendering
IV. Animation
Image Processing
(Rusty Coleman, CS426, Fall99)
Image Representation
! Sampling
! Reconstruction
! Quantization & Aliasing
Image Composition
(Michael Bostock, CS426, Fall99)
Image Processing
Modeling
Animation
(Angel, Plate 1)
Filtering
Warping
Composition
Morphing
Image Morphing
(All students in CS 426, Fall98)
3D Rendering Pipeline
!
!
!
!
!
!
!
!
!
!
!
Representations of geometry
Modeling transformations
Viewing transformations
Hidden surface removal
Illumination, shading, and textures
Scan conversion, clipping
Hierarchical scene graphics
OpenGL
! Curves: splines
! Surfaces: meshes, splines, subdivision
! Solids: voxels, CSG, BSP
OpenGL
(Chi Zhang, CS 426, Fall99)
Procedural modeling
! Sweeps
! Fractals
! Grammars
Global illumination
Shell
! Ray tracing
! Radiosity
(Douglas Turnbull,
CS 426, Fall99)
Scenery Designer
Ray Tracing
Overview
Keyframing
Administrivia
! Kinematics
! Articulated figures
Syllabus
Motion capture
! Capture
! Warping
Dynamics
! Raster Graphics
Ice Queen
(Mao Chen et al
CS426, Fall98)
! Physically-based simulations
! Particle systems
Behaviors
! Planning, learning, etc.
Animation
(Jon Beyer,
CS426, Spring04)
Raster Graphics
What is an Image?
Images
! What is an image?
! How are images displayed?
Colors
! How do we perceive colors?
! How do we represent colors in a computer?
Continuous image
What is an Image?
What is an Image?
Continuous image
Digital image
Image Acquisition
Pixels are samples from continuous function
! Photoreceptors in eye
! CCD cells in digital camera
! Rays in virtual camera
Digital image
Continuous image
Digital image
Image Display
Re-create continuous function from samples
! Example: cathode ray tube
Image is reconstructed
by displaying pixels
with finite area
(Gaussian)
Display Hardware
Video display devices
!
!
!
Hard-copy devices
Image Resolution
!
!
!
!
!
Ink-jet printer
Laser printer
Film recorder
Electrostatic printer
Pen plotter
Frame Buffer
Intensity resolution
! Each pixel has only Depth bits for colors/intensities
Spatial resolution
! Image has only Width x Height pixels
Temporal resolution
Typical
Resolutions
NTSC
Workstation
Film
Laser Printer
Width x Height
640 x 480
1280 x 1024
3000 x 2000
6600 x 5100
Depth
8
24
12
1
Rate
30
75
24
-
Frame Buffer
Figure 1.2 from FvDFH
Color CRT
Raster Graphics
Images
! What is an image?
! How are images displayed?
! Colors
! How do we perceive colors?
! How do we represent colors in a computer?
Electromagnetic Spectrum
Visible Light
White Light
Figures 15.1 from H&B
Color Perception
Color Models
Spectral-response functions of
each of the three types of cones
on the human retina.
RGB
XYZ
CMY
HSV
Tristimulus
theory of color
Orange Light
Others
G
0.0
0.0
1.0
0.0
1.0
0.0
1.0
1.0
0.0
0.5
0.5
0.3
B
0.0
0.0
0.0
1.0
0.0
1.0
1.0
1.0
0.0
0.5
0.0
0.1
Color
Black
Red
Green
Blue
Yellow
Magenta
Cyan
White
?
?
?
?
Figures 15.11&15.12 from H&B
(White)
Compare
Color
Gamuts
Identify
Complementary
Colors
Determine
Dominant Wavelength
and Purity
C
0.0
1.0
0.0
0.0
1.0
1.0
0.0
1.0
0.5
1.0
1.0
M
0.0
0.0
1.0
0.0
1.0
0.0
1.0
1.0
0.0
0.5
0.5
Color
White
Cyan
Magenta
Yellow
Blue
Green
Red
Black
?
?
?
Summary
Images
!
!
!
!
Y
0.0
0.0
0.0
1.0
0.0
1.0
1.0
1.0
0.0
0.5
0.0
Colors
! Tristimulus theory of color
! CIE Chromaticity Diagram
! Different color models for different devices, uses, etc.
S
1.0
1.0
1.0
0.0
0.0
*
1.0
0.5
0.0
V
1.0
1.0
1.0
1.0
0.5
0.0
1.0
1.0
0.7
Color
Red
Green
Blue
White
Gray
Black
?
?
?