Convert notes into blockquotes
This commit is contained in:
parent
832fb15e54
commit
8ed9dea394
105 changed files with 884 additions and 411 deletions
15
56-03.md
15
56-03.md
|
|
@ -25,9 +25,18 @@ need the complete X-Sharp library to see texture mapping in action, but
|
|||
Listings 56.1 and 56.2 are the actual texture mapping code in its
|
||||
entirety.
|
||||
|
||||
------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
 *Here's a major tip: DDA texture mapping looks best on fast-moving surfaces, where the eye doesn't have time to pick nits with the shearing and aliasing that's an inevi table by-product of such a crude approach. Compile DEMO1 from the X-Sharp archive in this chapter's subdirectory of the listings disk, and run it. The initial display looks okay, but certainly not great, because the rotational speed is so slow. Now press the S key a few times to speed up the rotation and flip between different rotation axes. I think you'll be amazed at how much better DDA texture mapping looks at high speed. This technique would be great for mapping textures onto hurtling asteroids or jets, but would come up short for slow, finely detailed movements.*
|
||||
------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
> 
|
||||
> Here's a major tip: DDA texture mapping looks best on fast-moving
|
||||
> surfaces, where the eye doesn't have time to pick nits with the shearing
|
||||
> and aliasing that's an inevi table by-product of such a crude approach.
|
||||
> Compile DEMO1 from the X-Sharp archive in this chapter's subdirectory of
|
||||
> the listings disk, and run it. The initial display looks okay, but
|
||||
> certainly not great, because the rotational speed is so slow. Now press
|
||||
> the S key a few times to speed up the rotation and flip between
|
||||
> different rotation axes. I think you'll be amazed at how much better DDA
|
||||
> texture mapping looks at high speed. This technique would be great for
|
||||
> mapping textures onto hurtling asteroids or jets, but would come up
|
||||
> short for slow, finely detailed movements.
|
||||
|
||||
**LISTING 56.1 L56-1.C**
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue