ind-pseudo-3d

Description

This program shows one way to make use of pseudo-3D texturing. It shows a landscape scene to which a pseudo-3D texture has been applied. A series of layers are defined in a texture map that describe landscape appearance at difference elevations. A position-based texgen is used with an indirect texture to select the blend of layers that should be applied at any given elevation.

Coverage

Functions Parameters Description
GXSetTexCoordScaleManually Texture coordinate. GX_TEXCOORD0.
enable GX_TRUE
scale S 63
scale T 63
GXSetNumIndStages number of stages 1
GXSetIndTexOrder indirect stage GX_INDTEXSTAGE0.
Texture coordinate. GX_TEXCOORD1.
texture map GX_TEXMAP1
GXSetIndTexCoordScale indirect stage GX_INDTEXSTAGE0.
S scale GX_ITS_1
T scale GX_ITS_1
GXSetTevIndTile TEV stage GX_TEVSTAGE0, GX_TEVSTAGE1.
indirect stage GX_INDTEXSTAGE0.
tile size S 64
tile size T 64
tile spacing S 0
tile spacing T 64
indirect texture format GX_ITF_4
indirect texture matrix GX_ITM_0
indirect bias select GX_ITB_NONE, GX_ITB_T.
bump alpha select GX_ITBA_OFF, GX_ITBA_S.

Operation Method

START stops the texture animation.
The Control Stick rotates the model. The C Stick translates the model.
The A and B Buttons zoom in and out.

Snapshot

ind-pseudo-3d-0.jpg (32533 bytes)

ind-pseudo-3d-1.jpg (21990 bytes)

ind-pseudo-3d-2.jpg (21932 bytes)

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/pseudo.tpl.

Revision History

03/01/2006 Initial version.