tf-reflect

Description

tf-reflect uses position matrix indices and texture matrix indices as vertex attributes. This makes it possible to render a soft object with reflection mapping. The demo shows a metallic coil as an example.

Coverage

Functions Parameters Description
GXLoadPosMtxIndx Matrix Model view matrix for each node.
Matrix output destination GX_PNMTX0, GX_PNMTX1
GXLoadTexMtxIndx Matrix Texture matrix to transform normal vector for each node.
Matrix output destination GX_TEXMTX0, GX_TEXMTX1
Matrix type GX_MTX2x4
GXSetVtxDesc Attribute ID GX_PNMTXIDX, GX_TEX0MTXIDX
Attribute comparison method GX_DIRECT
GXMatrixIndex1u8 Index. GX_PNMTX0, GX_PNMTX1
GX_TEXMTX0, GX_TEXMTX1
GXSetTexCoordGen Texture coordinate ID GX_TEXCOORD0.
Matrix type GX_TG_MTX2x4
Attribute source to use for texture generation. GX_TG_NRM
Matrix input source. GX_TEXMTX0, GX_TEXMTX1

Using the Demo

START exits the test. The A and B Buttons change camera zoom. The Control Stick rotates the coil. The L and R Buttons transform the model.

Snapshot

tf-reflect-1.jpg

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tf-02.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL