tg-project

Description

A tg-project tests every detail of the texture projection. The user can change all parameters in this sample interactively.

Coverage

Functions Parameters Description
GXLoadTexMtxImm Matrices Appropriate projection matrix.
Matrix destination. GX_TEXMTX0
Types GX_MTX3x4
GXSetTexCoordGen   Destination coordinates. GX_TEXCOORD0.
Generation type. GX_TG_MTX3x4
Generation source. GX_TG_POS
Matrix source. GX_TEXMTX0

Using the Demo

The Menu button exits the test.

The X Button toggles control mode.

    Camera Control

    Light Position Control

    Light Parameter Control

    Model Select Control

    Texture Select Control

Snapshot

Texture projection onto a cube.

tg-project-1.jpg (14044 bytes)

Texture projection onto a dodecahedron.

tg-project-2.jpg (13732 bytes)

Texture projection onto a cylinder.

tg-project-3.jpg (15805 bytes)

Texture is projection onto a sphere.

tg-project-4.jpg (15604 bytes)

Texture projection onto an octahedron.

tg-project-5.jpg (14721 bytes)

Texture projection onto an icosahedron.

tg-project-6.jpg (14609 bytes)

Texture projection onto an torus.

tg-project-7.jpg (15483 bytes)

Data Files Required

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tg-01.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL