tg-basic

Description

tg-basic tests various methods of texture generation. The following methods are used:
(Texture coordinates) * (2x4 matrix) : Texture conversion
(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 coordinates. 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

Using the Demo

START exits the test.

The B Button turns the texture on and off.

The A Button changes the texture generation 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

2006/03/01 Initial version.


CONFIDENTIAL