Introduction and Graphics Pipeline - PowerPoint PPT Presentation

About This Presentation
Title:

Introduction and Graphics Pipeline

Description:

Introduction and Graphics Pipeline. Advanced Multimedia ... Binary space partition. BSP tree. BSP tree construction. BSP tree display. Back face culling ... – PowerPoint PPT presentation

Number of Views:54
Avg rating:3.0/5.0
Slides: 54
Provided by: cyy
Category:

less

Transcript and Presenter's Notes

Title: Introduction and Graphics Pipeline


1
Introduction and Graphics Pipeline
  • Advanced Multimedia Technology Computer Graphics
  • Yung-Yu Chuang
  • 2005/12/07

with slides by Brian Curless, Zoran Popovic,
Robin Chen and Doug James
2
Introduction
  • Instructor Yung-Yu Chuang (???)
  • E-mail cyy_at_csie.ntu.edu.tw
  • Office CSIE 527
  • Web
  • http//www.csie.ntu.edu.tw/cyy/amt/

3
What is Computer Graphics ?
  • Definition
  • the pictorial synthesis of real or imaginary
    objects from their computer-based models

OUTPUT
descriptions images
descriptions Computer Graphics
images Computer Vision Image Processing
INPUT
4
Computer graphics
  • Create a 2D image/animation of a 3D world

5
Computer graphics
modeling
rendering
animation
6
Applications
  • Movies
  • Interactive entertainment
  • Industrial design
  • Architecture
  • Culture heritage

7
Animation production pipeline
storyboard
story
text treatment
voice
storyreal
look and feel
8
Animation production pipeline
animation
layout
modeling/articulation
shading/lighting
rendering
final touch
9
Scan converting lines
  • A scan-converted line showing intensified pixels
    as black circles

10
The basic incremental algorithm
11
The basic incremental algorithm
  • void Line (int x0, int y0, int x1, int y1, value)
  • int x
  • float dy, dx, y, m
  • dyy1-y0
  • dxx1-x0
  • mdy/dx
  • yy0
  • for (xx0 xltx1 x)
  • WritePixel (x, (int)floor(y0.5), value)
  • ym

12
Filling Polygons
13
Filling Polygons
14
Filling Polygons
  1. find the intersections of the scan line with all
    edges of the polygon
  2. sort the intersections by increasing x coordinate
  3. fill in all pixels between pairs of intersections
    that lie interior to the polygon

15
Transformations
16
Representation
17
Representation
18
2D transformations
19
Identity
20
Scaling
21
Scaling
22
Reflection
23
Shearing
24
Transformation of a unit square
25
Transformation of a unit square
26
Rotation
27
Limitations of a 2X2 matrix
  • Scaling
  • Rotation
  • Reflection
  • Shearing
  • What do we miss?

28
Homogeneous coordinate
29
Translation
30
3D scaling
31
3D translation
32
3D rotation
33
3D shearing
34
Graphics pipeline
35
Graphics pipeline
36
3D synthetic camera model
37
Imaging with the synthetic camera
38
Specifying a viewer
39
Projections
40
Parallel and perspective projections
orthographic
perspective
41
Orthographic transformation
42
Perspective projection
43
Perspective transform
44
Visibility Algorithms
  • Painters algorithm
  • Ray casting
  • Z-buffer
  • Binary space partitioning

45
Ray casting
46
Z-buffer algorithm
47
Z-buffer algorithm
48
Z-buffer algorithm
49
Binary space partition
50
BSP tree
51
BSP tree construction
52
BSP tree display
53
Back face culling
Write a Comment
User Comments (0)
About PowerShow.com