tev-multi

Description

This program tests multiple TEV stages using the re-ordering feature. Processes up to 8 TEV stages. Ordering parameters (for texture maps, texture coordinates, and color channel inputs) and TEV operation modes can be specified in each stage.

Coverage

Functions Parameters Description
GXInitTexObj Pointer to image data. Appropriate value.
Width and height Fixed value.
format GX_TF_RGBA8
Wrap mode (s, t). Always GX_REPEAT.
Mipmap Always GX_FALSE.
GXLoadTexObj Destination texture name GX_TEXMAP0 - GX_TEXMAP7
GXSetNumChans Number of color channels. 0, 1, 2
GXSetNumTexGens number of texture coordinates. 0, 8
GXSetTexCoordGen Texture coordinate ID GX_TEXCOORD0 - GX_TEXCOORD7
Type of texture coordinate generation Always GX_TG_MTX2x4.
Source parameter of texture coordinate generation. Always GX_TG_TEX0.
Matrix index Appropriate matrix index
GXSetNumTevStages Number of TEV Stages 1 - 8
GXSetTevOp TEV stage ID. GX_TEVSTAGE0 - GX_TEVSTAGE7
Operation Mode GX_PASSCLR, GX_REPLACE, GX_DECAL, GX_MODULATE, GX_BLEND
GXSetTevOrder TEV stage ID. GX_TEVSTAGE0 - GX_TEVSTAGE7,
Texture coordinate ID GX_TEXCOORD0 - GX_TEXCOORD7, GX_TEXCOORD_NULL
Texture map ID GX_TEXMAP0 - GX_TEXMAP7, GX_TEXMAP_NULL
Color channel ID GX_COLOR0A0, GX_COLOR1A1, GX_COLOR_NULL

Method of Operation

End the test with START.

The Control Stick moves the cursor.

The X and Y Buttons change the parameter value pointed to by the cursor.

The A Button stops the animation.

The B Button changes the channel color.

Snapshot

Eight-layered texture using the GX_DECAL mode.

tev-multi-0.jpg (58194 bytes)

GX_PASSCLR and GX_REPLACE.

tev-multi-1.jpg (48172 bytes)

GX_BLEND and GX_MODULATE.

tev-multi-2.jpg (54517 bytes)

Random ordering

tev-multi-3.jpg (54915 bytes)

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tev-02.tpl

Revision History

2008/07/22 Added information to Method of Operation.
2006/03/01 Initial version.


CONFIDENTIAL