This chapter discuss the purpose of the components required for successful communications; describe these uses of computer communications: wireless messaging services, wireless Internet access points, cybercafés, global positioning systems, collaboration, groupware, voice mail, and Web services;
Trang 1Computer Graphics
Lecture 19 Fasih ur Rehman
Trang 2Last Class
• Rasterization
• Fragment Processing
• Clipping
Trang 3Today’s Agenda
• Clipping
Trang 4• Identification of the portions of geometric primitives by analytical calculations within the view windows
Trang 5• Not to clip means
be wasted
Trang 6Clipping Approach
• For each line segment
Trang 7• The process of determining which
primitives, or parts of primitives, fit within the clipping or view volume
• The portions of all primitives that can
possibly be displayed (lie in the cube)
Trang 8Line Clipping
• A clipper decides which primitives, or parts
of primitives can possibly be displayed and
be passed on to rasterizer
volume pass through the clipper, or are
accepted
are eliminated, or rejected or culled
volume must be clipped such that any part
lying outside the volume is removed
Trang 9Accepted
Trang 10Rejected
Trang 11Clipped
Trang 12Clipping Algorithms
• Test both end points of line
(same) edge
Trang 13Clipping Algorithms
• Test both end points of line
(same) edge
Trang 14Clipping Algorithms
• Combining the above two
view window, accept the line “trivially”
view window, reject the line “trivially”
accept and reject each segment trivially
Trang 15• Clipping
Trang 16• Fundamentals of Computer Graphics Third Edition by Peter Shirley and Steve
Marschner
• Interactive Computer Graphics, A
Top-down Approach with OpenGL (Sixth
Edition) by Edward Angel.