ID3DXTextureGutterHelper

The ID3DXTextureGutterHelper interface is used to build and manage gutter regions in a texture. Gutter regions separate textures and allow for bilinear interpolation to avoid rendering artifacts at texture boundaries.

The Get... methods provide access to the data structures used by the Apply... methods.

ID3DXTextureGutterHelper Members

Method Description
ID3DXTextureGutterHelper::ApplyGuttersFloat Applies gutters to a FLOAT texture buffer.
ID3DXTextureGutterHelper::ApplyGuttersPRT Applies gutters to an ID3DXPRTBuffer buffer object.
ID3DXTextureGutterHelper::ApplyGuttersTex Applies gutters to an IDirect3DTexture9 texture object.
ID3DXTextureGutterHelper::GetBaryMap Retrieves texel barycentric coordinates.
ID3DXTextureGutterHelper::GetFaceMap Retrieves the index of the mesh face to which each texel belongs.
ID3DXTextureGutterHelper::GetGutterMap Receives a texel class value that indicates texel class according to each texel's location.
ID3DXTextureGutterHelper::GetHeight Retrieves the height of the texture, in pixels.
ID3DXTextureGutterHelper::GetTexelMap Retrieves the (u, v) texture coordinates of each texel.
ID3DXTextureGutterHelper::GetWidth Retrieves the width of the texture, in pixels.
ID3DXTextureGutterHelper::ResampleTex Resamples a texture into this gutterhelper's parameterization.
ID3DXTextureGutterHelper::SetBaryMap Sets texel barycentric coordinates.
ID3DXTextureGutterHelper::SetFaceMap Sets the index of the mesh face to which each texel belongs.
ID3DXTextureGutterHelper::SetGutterMap Sets a texel class value that indicates texel class according to each texel's location.
ID3DXTextureGutterHelper::SetTexelMap Sets the (u, v) texture coordinates of each texel.

Remarks

Note    When used with precomputed radiance transfer (PRT), this interface requires a unique parameterization of the model. Every texel must correspond to a single point on the surface of the model and vice-versa. If the model includes multiple textures, it must be split into separate pieces that each contain one gutter helper object per texture.

This interface can be used to generate a map in texture space in which each texel is in one of four classes.

Texel Class Texel Location
0 Invalid point; texel will not be used.
1 Inside triangle.
2 Inside gutter.
4 Inside gutter; texel will be evaluated as a full sample in the ID3DXTextureGutterHelper::ApplyGuttersFloat, ID3DXTextureGutterHelper::ApplyGuttersTex, or ID3DXTextureGutterHelper::ApplyGuttersPRT methods.

For classes 1 and 2, a texel is stored with the face it belongs to, along with barycentric coordinates of the first two vertices of that face. Gutter vertices are assigned to the closest edge in texture space.

There is no texel class 3.

The ID3DXTextureGutterHelper interface is obtained by calling the D3DXCreateTextureGutterHelper function.

The LPD3DXTEXTUREGUTTERHELPER type is defined as a pointer to the ID3DXTextureGutterHelper interface.

typedef interface ID3DXTextureGutterHelper ID3DXTextureGutterHelper;
typedef interface ID3DXTextureGutterHelper *LPD3DXTEXTUREGUTTERHELPER;

Requirements

Header: Declared in D3dx9mesh.h.

Import Library: Use D3dx9.lib.