Environment Mapped Bump Mapping with Pbuffers on the
Radeon®
|
|
|
The ATI_EMBM sample demonstrates the use of Environment Mapped Bump Maps on Radeon class hardware. This sample app uses the following OpenGL extensions: ATI_envmap_bumpmap, WGL_ARB_pbuffer, WGL_ARB_pixel_format, and WGL_ARB_render_texture.
|
|
|
|
|
|
Figure 1 - Environment Mapped Bump Mapping on the Radeon
|
|
|
This sample uses EMBM to render a shiny bumpy floor.
- This effect is achieved by doing the following:
-
- Render reflection to Pbuffer
- Bind Pbuffer as a texture
- Draw floor using Pbuffer as reflection texture
and EMBM enabled
- Draw sparks above the floor
|
|
|
- RadeonEnvMapBumpMap Controls
-
- UP/DOWN Arrows - Move Spark Swarm Up or Down
with respect to the floor
- RIGHT_CLICK+MOUSE - Rotate Scene
- LEFT_CLICK+MOUSE - Translate Spark Swarm across
floor
- [ESC] - Quit
NOTE: This sample will only run in Win2K and WinXP
Download
RadeonEnvMapBumpMap.zip
|
|
|