Jinxiang Chai - PowerPoint PPT Presentation

1 / 44
About This Presentation
Title:

Jinxiang Chai

Description:

... pixels by graphics hardware, a piece of geometry goes through a number of transformations... Tristimulus of Color Theory. Spectral-response functions of ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 45
Provided by: symo5
Category:
Tags: by | chai | color | jinxiang | number

less

Transcript and Presenter's Notes

Title: Jinxiang Chai


1
Computer Graphics CPSC 441
  • Jinxiang Chai

2
Final exam
  • Time 100pm-300, 5/12
  • Location HRBB 113

3
Scan Line Conversion
  • How to draw a line?
  • - Digital Differential Analyzer (DDA)
  • - Midpoint algorithm
  • - Understand both algorithms
  • - Strengths and limitations

4
Scan Conversion of Polygons
  • How to draw a polygons?
  • - Active edge list
  • - Boundary fill
  • - Flood fill
  • - Understand three algorithms
  • - Limitations and strengths

5
Clipping Lines
6
Clipping Lines
7
Clipping Lines
  • Given a line with end-points (x0, y0), (x1, y1)
  • and clipping window (xmin, ymin), (xmax, ymax),
  • determine if line should be drawn and clipped
    end-points of line to draw.

(xmax,ymax)
(x1, y1)
(x0, y0)
(xmin,ymin)
8
Line Clipping
  • How to clip a line?
  • - Simple line clipping algorithm
  • - Cohen--Sutherland
  • - Liang-Barsky

9
Clipping Polygons
  • Clipping polygons is more complex than clipping
    the individual lines
  • - Input polygon

10
Clipping Polygons
  • Clipping polygons is more complex than clipping
    the individual lines
  • - Input polygon
  • - Output original polygon, new polygon, or
    nothing

11
Polygon Clipping
  • How to clip a polygon?
  • - Sutherland-Hodgman Clipping (convex
    polygons)
  • - Weiler-Atherton Algorithm (general
    polygons)

12
2D/3D Transformation
  • Various transform matrices
  • - 2D/3D rotation
  • - 2D/3D translation
  • - 2D/3D scaling
  • - 2D affine transform

13
2D/3D Coordinate Transformation
  • Various transform matrix
  • - 2D/3D rotation
  • - 2D/3D translation
  • - 2D/3D scaling
  • - 2D affine transform
  • How to do 2D/3D matrix composition

14
2D Coordinate Transformation
  • Transform object description from to

p
14
15
2D Coordinate Transformation
  • 2D translation

p
15
16
2D Coordinate Transformation
  • 2D translation

0
1
p
0
1
16
17
2D Coordinate Transformation
  • 2D translationrotation

p
17
18
2D Coordinate Transformation
  • 2D translation scaling

p
18
19
Composite 2D/3D Transformation
  • A 2D lamp character

19
20
Composite 2D/3D Transformation
  • A 2D lamp character

20
21
Composite 2D/3D Transformation
  • A 2D lamp character

?
Given , , how to compute the
global position of the point p?
21
22
2D/3D Hierarchical Models
  • Hierarchical model can be composed of instances
    using trees or directed acyclic graphs (DAGs)
  • - edges contains geometric transformations
  • - nodes contains geometry

world
base
Upper arm
lower arm
23
A More Complex Example Human Figure
24
Motion Capture Data
  • .asf file
  • .amc file

25
3D-gt2D Geometry Pipeline
Rotate and translate the camera
View space
World space
Object space
Focal length
Aspect ratio resolution
Normalized project space
Image space
25
26
3D Geometry Pipeline
  • Before being turned into pixels by graphics
    hardware, a piece of geometry goes through a
    number of transformations...

Model space (Object space)
26
27
3D Geometry Pipeline
  • Before being turned into pixels by graphics
    hardware, a piece of geometry goes through a
    number of transformations...

World space (Object space)
27
28
3D Geometry Pipeline
  • Before being turned into pixels by graphics
    hardware, a piece of geometry goes through a
    number of transformations...

Eye space (View space)
28
29
3D Geometry Pipeline
  • Before being turned into pixels by graphics
    hardware, a piece of geometry goes through a
    number of transformations...

Normalized projection space
29
30
Projections
  • Parallel projection
  • - definition
  • - properties
  • Perspective projection
  • - definition
  • - homogeneous coordinates
  • - vanishing point
  • - properties

31
3D Geometry Pipeline
  • Before being turned into pixels by graphics
    hardware, a piece of geometry goes through a
    number of transformations...

Image space, window space, raster space, screen
space, device space
31
32
3D Rendering pipeline
Modeling transformation
Transform into 3D world system
Illuminate according to lighting and reflectance
lighting
Transform into 3D camera coordinate system
Viewing transformation
Transform into 2D camera system
Project transformation
Clip primitives outside cameras view
Clipping
Draw pixels (includes texturing, hidden surface,
etc.)
Scan conversion
Image
33
Hidden Surface Removals
  • Backface Culling
  • Painters algorithm
  • BSP
  • Z-buffer
  • Scan line
  • Ray casting

34
Color
  • Human visual system
  • Tristimulus of Color Theory
  • Chromaticity
  • Different colors models

35
Tristimulus of Color Theory
  • Spectral-response functions of each of the three
    types of cones
  • Color matching function based on RGB
  • - any spectral color can be represented as a
    linear combination of these primary colors

36
Chromaticity Diagram
  • Determining purity and dominant wave length for a
    given color
  • Identify complementary colors
  • Compare color gamuts for different primaries

Image taken from http//fourier.eng.hmc.edu/e180/h
andouts/color1/node27.html
37
Lighting
  • Ambient lighting
  • Diffuse lighting
  • Specular lighting
  • Spot lights and light attenuation

38
Shading Algorithms
  • Flat Shading
  • Gouraud Shading
  • Phong Shading

39
Texture mapping others
  • Texture mapping, environment mapping, bump/normal
    mapping, displacement mapping,

40
Rendering
  • Local illumination
  • Global illumination
  • - ray tracing
  • - radiosity
  • - photon mapping

41
Rotation representation
  • Rotation matrix
  • Fixed angle and Euler angle
  • Axis angle
  • Quaternion

Understand their properties in terms of matrix
composition, compactness, and rotation
interpolation
42
Mocap
  • Various mocap techniques
  • Advantages and disadvantages

43
Keyframe interpolation
  • Basic concept
  • Various curve representation
  • Various spline representation

44
Forward Kinematcs and Inverse Kinematics
  • Basic concepts
  • IK approaches
  • Jacobian matrix
  • Problems in IK and how to address them
Write a Comment
User Comments (0)
About PowerShow.com