Chapter 7

Convexity and Interpolation

It’s time now to get some of the geometric concepts underlying 3D modeling and lighting in place before we reach those particular chapters. We’ve seen programs where colors, defined at the vertices of a primitive, are mixed and spread throughout the primitive’s interior. This is done by means of interpolation. In this chapter we’ll study the exact mechanics of the interpolation process.

Section 7.1 motivates the process of interpolation with simple examples. Section 7.2 gets to the heart of the matter by showing first that line segment and triangle primitives are particularly suited for interpolation because of the property they share that any point of such a primitive can be uniquely represented ...

Get Computer Graphics Through OpenGL, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.