Professional Documents
Culture Documents
Lecture28!28!16827 3d Clipping
Lecture28!28!16827 3d Clipping
3D Clipping
3D Viewing Pipeline
Primitives
Object space
Modeling Transformation
World space
Viewing Transformation
Camera space
3D-Clipping
Projection
Normalized view space
Scan conversion, Hiding
Image space,
February 7, 2024 Computer Graphics Device coordinates 2
Image
Contents
1. Introduction
2. Clipping Volume
3. Clipping Strategies
4. Clipping Algorithm
3D Clipping
• Just like the case in two dimensions, clipping removes objects
that will not be visible from the scene
y y
clipped line
clipped line
x 1 x
1
near far
z 0 1 z
image plane
near far
y h y1h ( y 2 h y1h )u
z h z1h ( z 2 h z1h )u
h h1 (h 2 h1)u
February 7, 2024 Computer Graphics 26
3D Cohen-Sutherland Line Clipping
• Consider the line P1[000010] to P2[001001]
• Because the lines have different values in bit 2 we know the line
crosses the right boundary
• using this value for u we can then solve for yp and zp similarly
• Then simply continue as per the two dimensional line clipping
algorithm
February 7, 2024 Computer Graphics 28
Any Question !