CSL 859: Advanced Computer Graphics - PowerPoint PPT Presentation

About This Presentation
Title:

CSL 859: Advanced Computer Graphics

Description:

Clip to Window extremes. Setup edges. Rasterize. Fill and interpolate colors, depth ... Homogeneous Space Clipping. Clip coordinates = projective coordinates ... – PowerPoint PPT presentation

Number of Views:60
Avg rating:3.0/5.0
Slides: 15
Provided by: sub8
Category:

less

Transcript and Presenter's Notes

Title: CSL 859: Advanced Computer Graphics


1
CSL 859 Advanced Computer Graphics
  • Dept of Computer Sc. Engg.
  • IIT Delhi

2
Graphics Pipeline
  • Transform vertices
  • Light vertices
  • Clip to Window extremes
  • Setup edges
  • Rasterize
  • Fill and interpolate colors, depth
  • Test against Z-buffer
  • One entry per pixel closest so far
  • Update Color and Z buffers

3
Light Vertices
Color
Light Direction
normal
Point Directional Or Both
View Direction
4
Lighting in which space?
  • Projective?
  • Distances get distorted
  • Clip coordinates
  • Normalized device coordinates
  • Screen?
  • World
  • Camera

-1
5
Homogeneous Space Clipping
  • Clip coordinates projective coordinates
  • -1 lt x/z lt 1 (after perspective divide)
  • -1 lt x/w lt 1 (clip)
  • -w lt x lt w
  • -w lt y lt w
  • 0 lt z lt w

6
Rasterize
x0,y0,z0
y mx c x 1/m(yc) ayb
x2,y2,z2
x1 aya b x a
x1, y1,z1
zp1 zp k
7
Perspective Distortion
z2
z1
8
Perspective Distortion
9
(No Transcript)
10
Perspective Correction
  • Linear interpolation
  • p(t) p1 (p2 p1) t, 0 lt t lt 1
  • Screen space interpolation
  • ys y1s t (y2s y1s)
  • y/z y1/z1 t (y2/z2 y1/z1)
  • But also
  • y y1 u (y2 y1)
  • z z1 u (z2 z1)

11
Perspective Correction
12
Perspective Correction
13
Perspective Correct Z
14
Perspective Corrected
Write a Comment
User Comments (0)
About PowerShow.com