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 coordinates GX_TEXCOORD0
Enabled GX_TRUE
Scale S 63
Scale T 63
GXSetNumIndStages Number of stages 1
GXSetIndTexOrder Indirect stage GX_INDTEXSTAGE0
Texture coordinates 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

Using the Demo

START ends the demo.
The main stick rotates the model.
The substick translates the model.
The A/B buttons zoom in/zoom 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

2006/03/01 Initial version.


CONFIDENTIAL