tex-lod

Description

This program tests advanced LOD control modes of mipmapped textures such as LOD bias, edge-diagonal-LOD mode, bias clamping, and anisotropic filter. The screen is divided into four sections and it is possible to compare differences by setting parameters for the texture of each section.

Coverage

Functions Parameters Description
GXInitTexObj Pointer to image data. Appropriate value.
Width and height Only power of 2 (depends on tpl file)
format Some formats (depends on tpl file)
Wrap mode (s, t) One or more (depends on tpl file)
Mipmap Always GX_TRUE
GXInitTexObjLOD minification filter Always GX_LIN_MIP_LIN
Magnification filter Always GX_NEAR, GX_LINEAR
Minimum LOD Always 0 (depends on tpl file)
Maximum LOD Existing values (depends on tpl file)
LOD bias Various values.
Bias clamp GX_TRUE / GX_FALSE
Edge LOD enable GX_TRUE / GX_FALSE
Anisotropic filter GX_ANISO_1, GX_ANISO_2, GX_ANISO_4
GXLoadTexObj Destination texture name. Always GX_TEXMAP0
GXSetTevOp TEV stage ID Always GX_TEVSTAGE0
Operation mode Always GX_REPLACE

Using the Demo

START exits the demo.

The Control Stick rotates the cube in the selected screen section.
The C Stick changes the scale of the cube in the selected screen section.

X and Y Buttons move the cursor and select a section and a parameter to change.

L and R Buttons change the value of the selected parameter.

The A Button rotates or scales all cubes at the same time.

The B Button changes the texture of all cubes.

Snapshot

Various LOD bias settings.

tex-lod-0.jpg (42351 bytes)

Edge-LOD / Anisotropic filter.

tex-lod-1.jpg (40663 bytes)

Bias clamp.

tex-lod-2.jpg (40607 bytes)

Data Files Required

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-01.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL