Automatic Texture Coordinate Lighting
on Radeon®
|
| |

|
| |
Figure 1 - Texture lit teapot
|
| |
The sample RadeonTeapotTexGen uses automatically generated
texture coordinates and lighting maps to light the Utah
Teapot. Automatically generated camera-space normals index
into a diffuse map for diffuse lighting. Automatically
generated camera-space reflection vectors index into a
specular map to add specular highlights. Using three texture
stages, the Radeon® applies both maps as well as a base
texture in a single pass. Ambient lighting can also added
in the same pass as a texture color factor in the diffuse
lighting stage. Figure 1 shows the lit teapot.
See
RadeonTexGen for additional automatic texture coordinate
effects.
|
| |
- RadeonTeapotTexGen Controls
-
- D - Diffuse lighting only
- S - Diffuse and specular lighting
- B - Diffuse and specular lighting with base
texture
- A - Toggle ambient lighting on/off
- C - Show convex hull of teapot Bezier patches
- [SPACE] - Advance Frame-by-frame
- [ENTER] - stop advancing Frame-by-frame
- [ESC] - Quit
|
| |
| |
Downloads
|
| |
Note: The source code and media should be unzipped
into the following recommended directory structure to
ensure you can easily compile and run the executable.
Radeonxxxxxx.zip -> x:\atiddk\Direct3D\Radeonxxxxxx
media.zip -> x:\atiddk\media
RadeonTexGenTeapot.zip
media.zip
Back
to Samples Page
|
| |