ATI SDK

ATI Product Information

Support for Alternate OS's

Hardware partners

Software partners

RenderMonkey

Drivers


 
 

Highlights


GPU MeshMapper (V1.0)

GPU PerfStudio (V1.2)

Samples: CrossFire Detect (update)

Samples: PostTonemapResolve

The Compressonator (version 1.41)

GPU Shader Analyzer (V1.42)

RenderMonkey™
(version 1.81) (New)


ATI Compress (version 1.6)

AMD Tootle 2.0 (New)

AMD OpenGL ES 2.0 Emulator (V1.1) (New)

HLSL2GLSL (V0.9)

AMD at GDC 2007

ATI SDK


 
 
ATI Developer - Source Code
 
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
 
 
 


 



©2008 Advanced Micro Devices, Inc.    |    Contact AMD    |    Terms and Conditions    |    Privacy    |    Trademark information    |    Site Map