This can be done by checking the primitive caps in the D3D device description. ...
Then set the blending mode to be SRCALPHA for the source blending factor and
INVSRCALPHA for the destination ... Objects in the real world have detail all over
them, from the rings in wood grain to the red and white pattern on a brick wall. ...
and color each triangle so it could simulate things like the pictures of letters that
appear on the keys of a keyboard. ... Welcome to the world of texture mapping.
Author: Adrian Perez
Publisher: Republic of Texas Press
This latest addition to the Wordware Game Developer's Library describes how to create computer games with cutting-edge 3-D algorithms and effects. "Advanced 3-D Game Programming Using DirectX 7.0" is intended specifically for those who know how to program with C++ but have not yet explored game or graphics programming. The authors include coverage of artificial intelligence, client-server networking using UDP, multi-texture effects, multi-resolution surface techniques, alpha blending, and more. Along with several sample applications that target specific algorithms, full source code is provided for a client-server networked 3-D first-person game that demonstrates many of the techniques discussed in the book, while giving the reader the opportunity to make their own additions. The CD includes: Full source code in C++, including a complete game demonstrating techniques covered in the bookMicrosoft's DirectX 7a SDKSource code to other 3-D engines, including Quake, GL Quake, Quakeworld, Descent 1, Descent 2, Golgotha, and Crystal SpaceSelect articles on advanced gaming topics contributed by members of the graphics and game programming industryPaint Shop Pro evaluation edition for making texturesAdrian Perez, also known as [Cuban] in the computer game industry, has worked on the Direct3D team at Microsoft and in the graphics department at Lucent. He is a computer science major at Carnegie Mellon University in Pittsburgh, and a contributor to Game Developer magazine. Dan Royer is a developer at 3D Ion, a 3-D graphics company in Israel, and a contributor to flipcode.com, an online game programming news site.