tg-basic

Description

tg-basic tests various methods of texture generation. The following methods are used: (Texture coordinates) * (2x4 matrix) : Texture translate
(Texture coordinates) * (2x4 matrix) : Texture rotate
(Position Coordinates) * (3x4 matrix) : Texture projection
Texture coordinate generation as a result of lighting (s = red component, t = green component)

Coverage

Functions Parameters Description
GXLoadTexMtxImm Matrices appropriate transformation mtx
Matrix destination. GX_TEXMTX0
Types GX_MTX2x4 or GX_MTX3x4 depending on generation type.
GXSetTexCoordGen   destination coord Always GX_TEXCOORD0.
Generation type. GX_TG_MTX3x4, GX_TG_MTX2x4, or GX_TG_SRTG depending on generation type
Generation source. GX_TG_TEX0, GX_TG_POS, GX_TG_COLOR0
Matrix source. GX_TEXMTX0

Operation Method

START exits the test.

The B Button turns texture on/off..

The A Button changes texgen method.

Snapshot

Texture translation.

tg-basic-1.jpg (7368 bytes)

Texture rotation.

tg-basic-2.jpg (7338 bytes)

Texture projection.

tg-basic-3.jpg (6072 bytes)

Texture coordinate generation from the result of lighting calculations.

tg-basic-4.jpg (5505 bytes)

Data Files Required

$REVOLUTION_SDK_ROOT/dvddata/gxTextrs.tpl

Revision History

03/01/2006 Initial version.