I discussed isometric vs. perspective views in the previous chapter. Now you will develop a transformation that will automatically produce a perspective view. It operates much like a camera where rays are traced from the various points that comprise an object onto a plane that you might think of as a film plane. Figure 4-1 shows the geometry. It’s a three-dimensional box in the x,y,z space. The x,y plane represents the film plane. There’s also a focal point that is outside the x,y,z space in front of the x,y plane. Rays are traced from the box’s corners to the focal point. By connecting the points ...
Get Python Graphics: A Reference for Creating 2D and 3D Images 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.