3D Clipping - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

3D Clipping

Description:

Larry F. Hodges, G. Drew Kessler. 1. 3-D Clipping. Larry F. Hodges, G. Drew Kessler ... 3-D Extension of 2-D Cohen-Sutherland Algorithm, Outcode of six bits. ... – PowerPoint PPT presentation

Number of Views:117
Avg rating:3.0/5.0
Slides: 5
Provided by: drewke9
Category:
Tags: clipping

less

Transcript and Presenter's Notes

Title: 3D Clipping


1
3-D Clipping
2
Canonical View Volume
Y axis
1
Back
y-z
Clipping
Front
Plane
Clipping
z-1
Plane
-Z
-1
  • 3-D Extension of 2-D Cohen-Sutherland Algorithm,
    Outcode of six bits. A bit is true (1) when the
    appropriate condition is satisfied
  • Bit 1 - Point is above view volume y gt -z
  • Bit 2 - Point is below view volume y lt z
  • Bit 3 - Point is right of view volume x gt -z
  • Bit 4 - Point is left of view volume x lt z
  • Bit 5 - Point is behind view volume z lt -1
  • Bit 6 - Point is in front of view volume z gt zmin

yz
-1
3
Canonical View Volume
  • A line is trivially accepted if both endpoints
    have a code of all zeros.
  • A line is trivially rejected if the bit-by-bit
    logical AND of the codes is not all zeros.
  • Otherwise Calculate intersections.
  • On the y z plane from parametric equation of
    the line
  • y0 t( y1 - y0) z0 t( z1 z0)
  • Solve for t and calculate x and y. Already know
    z y

4
Viewport Transformation
  • Viewport tranformation 2x2 window, centered at
    (0,0), to viewport (Xmin, Ymin) to (Xmax, Ymax)
Write a Comment
User Comments (0)
About PowerShow.com