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.
| Functions | Parameters | Description |
GXSetTexCoordScaleManually |
Texture coordinate. | GX_TEXCOORD0. |
| enable | GX_TRUE | |
| scale S | 63 | |
| scale T | 63 | |
|
number of stages | 1 |
|
indirect stage | GX_INDTEXSTAGE0. |
| Texture coordinate. | GX_TEXCOORD1. | |
| texture map | GX_TEXMAP1 | |
|
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. |
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.



$REVOLUTION_SDK_ROOT/dvddata/gxTests/pseudo.tpl.
03/01/2006 Initial version.