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.4)

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
 
AutoGenMipMaps
 

Figure 1 - Automatically generated mip map and pseudocolor reference mip map

This sample application demonstrates hardware accelerated mip map generation in DirectX 9 for both 2D textures and cube maps.  Several different texture formats are demonstrated, and the user can cycle among them using the up/down arrows.

Each frame, this application renders a spinning teapot into the current renderable texture (all six faces in the case of a cube map).  The application then uses the texture's GenerateMipSubLevels() method to cause the mip map levels to be generated by the hardware.

In 2D texture mode, the application draws two spinning quadrilateral primitives, while spheres are drawn in the cube map mode.  In both modes, the primitive on the left is drawn with the dynamically updating mip map, while the primitive on the right is drawn with a reference texture which is the same size as the dynamic texture.  This reference texture contains mip levels of varying colors to illustrate the transition between mip levels.  Trilinear filtering can be toggled with the [T] key.  Switch between 2D and cube maps with the [M] key.

 
The following keys are implemented. The dropdown menus can be used for the same controls.
AutoGenMipMaps Controls
  • [M] - Toggles the map type (2D or cube map)
  • [T] - Toggles trilinear filtering
  • [F2] - Prompts user to select a new rendering device or display mode
  • Alt+[ENTER] - Toggles between fullscreen and windowed modes
  • [SPACE] - Pauses animation
  • [ENTER] - Restarts animation
  • [ESC] - Quit
 
Requirements

Download
 
 


 



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