|
|
|
|
| |
Light Mapping on the ATI Rage128
and Rage128 Pro with Direct3D
|
The R128DX7LightMap sample is a simple demonstration of multi-texture lightmapping. It applies a spotlight light map to the base texture to give the effect of per-pixel lighting. The sample uses DX7 multi-texturing to modulate the light map with the base texture in a single pass. Figure 1 shows R128DX7LightMap in action.
|
|
Figure 1
|
|
R128DX7LightMap is a very simple implementation of lightmapping, but gives the basic steps. A more elaborate implementation might project the cone of the spotlight onto the primitives to calculate the light map texture coordinates.
- R128DX7LightMap Controls
-
- F1 - About
- F2 - Select Driver/Device/Mode
- [ALT]+[ENTER] - Toggle fullscreen/windowed
- [ENTER] - Toggle Go/Stop
- Space Bar - Single Step
- M - Toggle multi-texture/multi-pass
- Arrow keys - Move spotlight around
- + or - - Increase or decrease the spotlight radius
- [ESC] - Quit
Downloads
DirectX 7 project file, source, executable, and support files
|
| |
 |
|
|
|