Strip comments and inline ids onto h*

This commit is contained in:
James Gregory 2013-12-30 15:11:04 +11:00
commit 0f5f617adb
362 changed files with 2519 additions and 6694 deletions

View file

@ -10,16 +10,9 @@
<meta name="vspubdate" content="07/01/97" />
<meta name="vscategory" content="Web and Software Development: Game Development,Web and Software Development: Graphics and Multimedia Development" />
<title>Michael Abrash's Graphics Programming Black Book Special Edition: 10,000 Freshly Sheared Sheep on the Screen</title><!-- HEADER -->
<!-- Empty Reference Subhead -->
<!--ISBN=1576101746//-->
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
<!--AUTHOR=Michael Abrash//-->
<!--PUBLISHER=The Coriolis Group, Inc.//-->
<title>Michael Abrash's Graphics Programming Black Book Special Edition: 10,000 Freshly Sheared Sheep on the Screen</title>
<meta name="chapter" content="57" />
<meta name="pages" content="1061-1065" />
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
</head>
<body>
@ -37,16 +30,16 @@
<p><br /></p>
<h2><a id="Heading1"></a>Chapter 57<br />
<h2 id="Heading1">Chapter 57<br />
10,000 Freshly Sheared Sheep on the Screen</h2>
<h3><a id="Heading2"></a>The Critical Role of Experience in Implementing Fast, Smooth Texture Mapping</h3>
<h3 id="Heading2">The Critical Role of Experience in Implementing Fast, Smooth Texture Mapping</h3>
<p>I recently spent an hour or so learning how to shear a sheep. Among other things, I learned&mdash;in great detail&mdash;about the importance of selecting the proper comb for your shears, heard about the man who holds the world&rsquo;s record for sheep sheared in a day (more than 600, if memory serves), and discovered, Lord help me, the many and varied ways in which the New Zealand Sheep Shearing Board improves the approved sheep-shearing method every year. The fellow giving the presentation did his best, but let&rsquo;s face it, sheep just aren&rsquo;t very interesting. If you have children, you&rsquo;ll know why I was there; if you don&rsquo;t, there&rsquo;s no use explaining.</p>
<p>The chap doing the shearing did say one thing that stuck with me, although it may not sound particularly profound. (Actually, it sounds pretty silly, but bear with me.) He said, &ldquo;You don&rsquo;t get really good at sheep shearing for 10 years, or 10,000 sheep.&rdquo; I&rsquo;ll buy that. In fact, to extend that morsel of wisdom to the greater, non-ovine-centric universe, it actually takes a good chunk of experience before you get good at anything worthwhile&mdash;especially graphics, for a couple of reasons. First, performance matters a lot in graphics, and performance programming is largely a matter of experience. You can&rsquo;t speed up PC graphics simply by looking in a book for a better algorithm; you have to understand the code C compilers generate, assembly language optimization, VGA hardware, and the performance implications of various graphics-programming approaches and algorithms. Second, computer graphics is a matter of illusion, of convincing the eye to see what you want it to see, and that&rsquo;s very much a black art based on experience.</p>
<h4 align="left"><a id="Heading3"></a>Visual Quality: A Black Hole ... Er, Art</h4>
<h4 align="left" id="Heading3">Visual Quality: A Black Hole ... Er, Art</h4>
<p>Pleasing the eye with realtime computer animation is something less than a science, at least at the PC level, where there&rsquo;s a limited color palette and no time for antialiasing; in fact, sometimes it can be more than a little frustrating. As you may recall, in the previous chapter I implemented texture mapping in X-Sharp. There was plenty of experience involved there, some of which I didn&rsquo;t mention. My first implementation was disappointing; the texture maps shimmied and sheared badly, like a loosely affiliated flock of pixels, each marching to its own drummer. Then, I added a control key to speed up the rotation; what a difference! The aliasing problems were still there, but with the faster rotation, the pixels moved too quickly for the eye to pick up on the aliasing; the rotating texture maps, and the rotating ball as a whole, crossed the threshold into being accepted by the eye as a viewed object, rather than simply a collection of pixels.</p>
@ -60,7 +53,7 @@
</tr>
</table>
<h4 align="left"><a id="Heading4"></a>Fixed-Point Arithmetic, Redux</h4>
<h4 align="left" id="Heading4">Fixed-Point Arithmetic, Redux</h4>
<p>In the previous chapter I added texture mapping to X-Sharp, but lacked space to explain some of its finer points. I&rsquo;ll pick up the thread now and cover some of those points here, and discuss the visual and performance enhancements that previous chapter&rsquo;s code needed&mdash;and which are now present in the version of X-Sharp in this chapter&rsquo;s subdirectory on the CD-ROM.</p>
@ -93,10 +86,6 @@
<div align="center">
Graphics Programming Black Book &copy; 2001 Michael Abrash
</div><!-- all of the reference materials (books) have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->
<!-- reference_footer = subfoot -->
<!-- BEGIN SUB FOOTER -->
<!-- END FOOTER -->
</div>
</body>
</html>