1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
9<title>tf-reflect</title>
10</head>
11
12<body>
13
14<h1 align="left">tf-reflect</h1>
15
16
17
18<h2>Description</h2>
19
20<P><CODE>tf-reflect</CODE> 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.</P>
21<h2>Coverage</h2>
22<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
23  <tr>
24<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD>
25<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD>
26<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD>
27    </tr>
28  <tr>
29<TD width="30%" rowspan="2"><a href="../../../gx/Transform/GXLoadPosMtxIndx.html"><FONT face="Courier New">GXLoadPosMtxIndx</FONT></a></TD>
30<TD width="25%">Matrices</TD>
31<TD width="45%">Model view matrix for each node.</TD>
32    </tr>
33  <tr>
34<TD width="25%">Matrix destination</TD>
35<TD width="45%"><CODE>GX_PNMTX0</CODE>, <CODE>GX_PNMTX1</CODE></TD>
36    </tr>
37  <tr>
38<TD width="30%" rowspan="3"><a href="../../../gx/Transform/GXLoadTexMtxIndx.html"><FONT face="Courier New">GXLoadTexMtxIndx</FONT></a></TD>
39<TD width="25%">Matrices</TD>
40<TD width="45%">Texture matrix to transform normal vector for each node.</TD>
41    </tr>
42  <tr>
43<TD width="25%">Matrix destination</TD>
44<TD width="45%"><CODE>GX_TEXMTX0</CODE>, <CODE>GX_TEXMTX1</CODE></TD>
45    </tr>
46  <tr>
47<TD width="25%">Matrix type</TD>
48<TD width="45%"><FONT face="Courier New">GX_MTX2x4</FONT></TD>
49    </tr>
50  <tr>
51<TD width="30%" rowspan="2"><a href="../../../gx/Geometry/GXSetVtxDesc.html"><FONT face="Courier New">GXSetVtxDesc</FONT></a></TD>
52<TD width="25%">Attribute ID</TD>
53<TD width="45%"><CODE>GX_PNMTXIDX</CODE>, <CODE>GX_TEX0MTXIDX</CODE></TD>
54    </tr>
55  <tr>
56<TD width="25%">Attribute comparison method</TD>
57<TD width="45%"><FONT face="Courier New">GX_DIRECT</FONT></TD>
58    </tr>
59  <tr>
60<TD width="30%"><a href="../../../gx/Geometry/GXMatrixIndex.html"><FONT face="Courier New">GXMatrixIndex1u8</FONT></a></TD>
61<TD width="25%">Index</TD>
62<TD width="45%"><FONT face="Courier New">GX_PNMTX0</FONT>, <FONT face="Courier New">GX_PNMTX1</FONT><br> <FONT face="Courier New">GX_TEXMTX0</FONT>, <FONT face="Courier New">GX_TEXMTX1</FONT></TD>
63    </tr>
64  <tr>
65<TD width="30%" rowspan="4"><a href="../../../gx/TexCoordGen/GXSetTexCoordGen.html"><FONT face="Courier New">GXSetTexCoordGen</FONT></a></TD>
66<TD width="25%">Texture coordinate ID</TD>
67<TD width="45%"><FONT face="Courier New">GX_TEXCOORD0</FONT></TD>
68    </tr>
69  <tr>
70<TD width="25%">Matrix type</TD>
71<TD width="45%"><FONT face="Courier New">GX_TG_MTX2x4</FONT></TD>
72    </tr>
73  <tr>
74<TD width="25%">Attribute source to use for texture generation.</TD>
75<TD width="45%"><FONT face="Courier New">GX_TG_NRM</FONT></TD>
76    </tr>
77  <tr>
78<TD width="25%">Matrix input source.</TD>
79<TD width="45%"><CODE>GX_TEXMTX0</CODE>, <CODE>GX_TEXMTX1</CODE></TD>
80    </tr>
81</TABLE>
82<h2>Operation Method</h2>
83
84<p>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.</p>
85
86<h2>Snapshot</h2>
87
88<P><IMG src="./images/tf-reflect-1.jpg" alt="tf-reflect-1.jpg" width="640" height="480"></p>
89
90<h2>Required Data Files</h2>
91
92<p><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/tf-02.tpl</FONT></p>
93<H2>Revision History</H2>
94<P>2006/03/01 Initial version.</P>
95<hr>
96<P>CONFIDENTIAL</p>
97</BODY>
98</HTML>