Remove colour attributes from body and strip most of the font tags out
This commit is contained in:
parent
7e957c0bb4
commit
c1f88ddb41
362 changed files with 1632 additions and 1706 deletions
|
|
@ -24,7 +24,7 @@
|
|||
<!--CHAPTER=65//-->
|
||||
<!--PAGES=1199-1206//-->
|
||||
<!--UNASSIGNED1//-->
|
||||
<!--UNASSIGNED2//--></HEAD><BODY LINK=#0000FF ALINK=#000099 VLINK=#0000FF BGCOLOR=#FFFFFF>
|
||||
<!--UNASSIGNED2//--></HEAD><body>
|
||||
|
||||
<CENTER>
|
||||
<TABLE BORDER>
|
||||
|
|
@ -95,11 +95,11 @@ int ClipToPlane(polygon_t *pin, plane_t *pplane, polygon_t *pout)
|
|||
<P>Believe it or not, this technique, applied in turn to each edge, is all that’s needed to clip a polygon to a plane. Better yet, a polygon can be clipped to multiple planes by repeating the above process once for each clip plane, with each interation trimming away any part of the polygon that’s clipped by that particular plane.
|
||||
</P>
|
||||
<P>One particularly useful aspect of 3-D clipping is that if you’re drawing texture mapped polygons, texture coordinates can be clipped in exactly the same way as (x,y,z) coordinates. In fact, the very same fraction that’s used to advance x, y, and z from the inside point to the point of intersection with the clip plane can be used to advance the texture coordinates as well, so only one extra multiply and one extra add are required for each texture coordinate.</P>
|
||||
<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077">Clipping to the Frustum</FONT></H4>
|
||||
<H4 ALIGN="LEFT"><A NAME="Heading6"></A>Clipping to the Frustum</H4>
|
||||
<P>Given a polygon-clipping function, it’s easy to clip to the frustum: set up the four planes for the sides of the frustum, with another one or two planes for near and far clipping, if desired; next, clip each potentially visible polygon to each plane in turn; then draw whatever polygons emerge from the clipping process. Listing 65.3 is the core code for a simple 3-D clipping example that allows you to move around and look at polygonal models from any angle. The full code for this program is available on the CD-ROM in the file DDJCLIP.ZIP.
|
||||
</P>
|
||||
<P><A NAME="Fig3"><!-- </A><A HREF="javascript:displayWindow('images/65-03.jpg',408,197 )"> --><IMG SRC="images/65-03.jpg"><BR><!-- </A>
|
||||
<BR><A HREF="javascript:displayWindow('images/65-03.jpg',408,197)"> --><FONT COLOR="#000077"><B>Figure 65.3</B></FONT></A> <I>Clipping a polygon edge.</I>
|
||||
<BR><A HREF="javascript:displayWindow('images/65-03.jpg',408,197)"> --><B>Figure 65.3</B></A> <I>Clipping a polygon edge.</I>
|
||||
</P>
|
||||
<P><B>LISTING 65.3 L65_3.c</B></P>
|
||||
<!-- CODE //-->
|
||||
|
|
@ -425,7 +425,7 @@ void UpdateWorld()
|
|||
|
||||
<hr width="90%" size="1" noshade>
|
||||
<div align="center">
|
||||
<font face="Verdana,sans-serif" size="1">Graphics Programming Black Book © 2001 Michael Abrash</font>
|
||||
Graphics Programming Black Book © 2001 Michael Abrash
|
||||
</div>
|
||||
<!-- all of the reference materials (books) have the footer and subfoot reveresed -->
|
||||
<!-- reference_subfoot = footer -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue