tg-emboss shows a simple emboss-style bump mapping (without a material texture).
This sample demo generates an image in a single pass with 2 TEV stages. If you use a material texture, 3 TEV stages are necessary.
For Real hardware
| Functions | Parameters | Description | |
|
Attributes | GX_VA_NBT / GX_VA_TEX0 |
|
| Types | GX_DIRECT |
||
GXSetTexCoordGen |
Destination coordinates. | GX_TEXCOORD0 |
GX_TEXCOORD1 |
| Generation type. | GX_TG_MTX2x4 |
GX_TG_BUMP0 |
|
| Generation source. | GX_TG_TEX0 |
GX_TG_TEXCOORD0 |
|
| Matrix source. | GX_IDENTITY |
GX_IDENTITY |
|
|
TEV Stages. | GX_TEVSTAGE0 |
GX_TEVSTAGE1 |
| Generation type. | GX_TEXCOORD0 |
GX_TEXCOORD1 |
|
| Generation source. | GX_TEXMAP0 |
GX_TEXMAP1 |
|
| Matrix source. | GX_COLOR0A0 |
GX_COLOR_NULL |
|
|
TEV register ID | GX_TEVREG0 |
|
| tev register color | { 0, 0, 0, bumpScale } bumpScale can be changed interactively |
||
|
TEV Stages. | GX_TEVSTAGE0 |
GX_TEVSTAGE1 |
| TEV color argument A | GX_CC_ZERO |
GX_CC_ZERO |
|
| TEV color argument B | GX_TC_TEXC |
GX_TC_TEXC |
|
| TEV color argument C | GX_CC_A0 |
GX_CC_A0 |
|
| TEV color argument D | GX_CC_RASC |
GX_CC_CPREV |
|
|
TEV Stages. | GX_TEVSTAGE0 |
GX_TEVSTAGE1 |
| TEV operation. | GX_TEV_ADD |
GX_TEV_SUB |
|
| TEV bias | GX_TB_ZERO |
GX_TB_ZERO |
|
| TEV scale | GX_CS_SCALE_1 |
GX_CS_SCALE_1 |
|
| TEV clamp | GX_ENABLE |
GX_ENABLE |
|
| TEV output | GX_TEVPREV |
GX_TEVPREV |
|
|
TEV Stages. | GX_TEVSTAGE0 |
GX_TEVSTAGE1 |
| TEV alpha argument A | GX_CC_ZERO |
GX_CC_ZERO |
|
| TEV alpha argument B | GX_CC_ZERO |
GX_CC_ZERO |
|
| TEV alpha argument C | GX_CC_ZERO |
GX_CC_ZERO |
|
| TEV alpha argument D | GX_CC_ZERO |
GX_CC_ZERO |
|
|
TEV Stages. | GX_TEVSTAGE0 |
GX_TEVSTAGE1 |
| TEV operation. | GX_TEV_ADD |
GX_TEV_ADD |
|
| TEV bias | GX_TB_ZERO |
GX_TB_ZERO |
|
| TEV scale | GX_CS_SCALE_1 |
GX_CS_SCALE_1 |
|
| TEV clamp | GX_DISABLE |
GX_DISABLE |
|
| TEV output | GX_TEVPREV |
GX_TEVPREV |
|
GXDrawCube |
void | Generate binormal / texture coord 0 also | |
START exits the test.
X Button moves cursor up.
B Button moves cursor down.
A Button changes parameter on the cursor.
Joy stick moves light position indicated a red rectangle.
Light position is the top left on the screen..

Light position is the bottom left on the screen..

Light position is the bottom left on the screen..

Light position is the top right on the screen..

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tg-02.tpl
2006/03/01 Initial version.
CONFIDENTIAL