Lecture05-Z-Buffering

Lecture05-Z-Buffering - CS 455 – Computer Graphics...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 455 – Computer Graphics Z-buffering, or, Interpolating other things across a triangle. Math Problem of the Da (5,2,3) (1,4,6) (3,7,0) (2, 5) Math Problem of the Da (5,2,3) (1,4,6) (3,7,0) (2, 5) Math Problem of the Day • What is the depth at (2,5)? What’s the value of the relative contribution (shown in blue) for each vertex at (2,5)? (5,2,3) (1,0,0) (1,4,6) (0,1,0) (3,7,0) (0,0,1) (2, 5) (?, ?, ?) Math Problem of the Day • What is the depth at (2,5)? What’s the value of the relative contribution (shown in blue) for each vertex at (2,5)? (5,2,3) (1,0,0) (1,4,6) (0,1,0) (3,7,0) (0,0,1) (2, 5) (?, ?, ?) Math Problem of the Day • What is the depth at (2,5)? What’s the value of the relative contribution (shown in blue) for each vertex at (2,5)? (5,2,3) (1,0,0) (1,4,6) (0,1,0) (3,7,0) (0,0,1) (2, 5) (?, ?, ?) Math Problem of the Day • What is the depth at (2,5)? (5,2,3) (1,4,6) (3,7,0) (2, 5) r l 8 . 3 5 6 5 3 2 7 5 3 5 3 1 5 6 6 7 . 1 1 4 7 1 3 1 1 1 1 =- = ⋅-- + = ⋅ + = = ⋅-- + = ⋅ + = s lo p e r s lo p e l x x 5 1 1 5 9 3 3 5 3 3 3 y) in (change z) in (change 3 4 1 3 6 6 1 ) 4 7 ( ) 6 ( 6 1 y) in (change z) in (change 6 =- =- + = ⋅ + = = ⋅- + = ⋅-- + = ⋅ + = z z r l Z-Buffering • Image creation algorithm: Determine which object is visible at each pixel Order of polygons not critical Works for dynamic scenes • Basic idea: Rasterize (scan-convert) each polygon, one at a time Keep track of a z value at each pixel- Interpolate...
View Full Document

{[ snackBarMessage ]}

Page1 / 25

Lecture05-Z-Buffering - CS 455 – Computer Graphics...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online