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
 
Auto Mip Map Generation on the Radeon®


Figure 1 - One full 90 degree spin of the "Blt Spin" algorithm
 
The RadeonAutoMipGen sample uses SGIS_generate_mipmap to demonstrate automatic mip map generation in OpenGL®. A procedural texture is created by the app and is copied to texture memory using glTexSubImage2D at which time the entire Mip chain is recomputed automatically.

The Blt (Block Transfer) Spin algorithm was inspired by a screen saver in the XScreenSavers package. The Basic idea is that an image is divided into quadrants then each quadrant slides to it's clockwise quadrant neighbor. Then the alorithm recurses (dividing each quadrant into 4 quadrants... etc) until your quadrant size is a single texel. This will result in your original image rotated 90 degrees. The actual demo continues to spin the image over and over, the animation shown here on the web page only shows a single 90 degree rotation (one complete cycle through the algorithm). Each time the image is updated it is copied to texture memory using glTexSubImage2D and because auto mip mapping is enabled the entire mip chain is recreated (you can zoom out the quad to verify that it's working).

 
RadeonAutoMipGen Controls:
  • F - Advance one frame (when Animation is toggled off)
  • UP/DOWN ARROW - Zoom In/Out
  • RIGHT + MOUSE - Zoom In/Out
  • SPACE - Toggle Animation (use F to flip through frames)
  • ESC - Quit
 
Downloads
 
RadeonAutoMipGen.zip

Back to Samples Page
 
 
 


 



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