|
|
|
|
| |
Alpha Testing on the ATI Rage128
and Rage128 Pro with Direct3D
|
The R128DX7AlphaTest shows how an alpha blended primitive can cause unwanted Z-buffer writes. Figure 1 shows a light blue quad drawn behind an animated texture sequence. Although the alpha blending applied to the texture prevents writes to the color buffer, z-buffer writes still occur causing the light blue quad to fail the depth test in several places even though the color buffer was untouched.
|
|
|
Figure 1 - results without alpha testing.
|
Figure 2 - results with alpha testing.
|
|
R128DX7AlphaTest first draws the background Rage 128 logo, and then simply loops though a set of texture maps animating an explosion. After the explosion has been drawn, a blue quad is drawn behind it. It is clearly visible, that without the alpha test rejection, the z-buffer is forced to record what is in essence an invisible pixel.
- R128DX7AlphaTest Controls
-
- F1 - About
- F2 - Select Driver/Device/Mode
- [ALT]+[ENTER] - Toggle fullscreen/windowed
- [ENTER] - Toggle Go/Stop
- Space Bar - Single Step
- A - Toggle alpha test on or off
- + - Increase alpha test value
- - - Decrease alpha test value
- [ESC] - Quit
Downloads
DirectX 7 project file, source, executable, and support files
|
| |
 |
|
|
|