|
|
|
|
| |
Bump Mapping on the ATI Rage128 with
OpenGL
|
|
|
The Rage128Bump sample program uses multitexturing via ARB_multitexture and EXT_texture_env_combine to perform the popular emboss style of bump mapping. This example program uses a bump mapped sphere from Blinn's original paper on bump mapping.
| |
|
|
|
|
- Rage128Bump Controls
- B - Toggle the bump mapping of the sphere
- C - Toggle the coloring of the sphere sides
- W - Toggle the drawing of the sphere in wireframe
- F - Toggle the drawing of the filled sphere
- A - Toggle whether or not the tangent space axes are drawn
- L - Toggle whether or not the vectors to the light source are drawn
- S - Toggle whether a single point or several points are used when drawing local coordinate vectors
- +/- - Cycle through the different bump maps
- Right mouse drag - Move light source in x and y
- Left mouse drag - Rotate the sphere
- [ESC] - Quit
Building and Running Rage128Bump
In order to build Rage128Bump, you must have a gl.h file that contains the necessary defines for both the ARB_Multitexture extension and the Texture_Env_Combine extension. Likewise to run the app you must have OpenGL drivers that implement these extensions. Please see the page Building OpenGL Samples for more information on this and other general information.
Win32 Downloads
Project file, source, executable, and support files (814 kb)
Shared source and include files (31 kb)
|
| |
 |
|
|
|