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>tg-basic</title>
10</head>
11
12<body>
13
14<h1 align="left">tg-basic</h1>
15
16<h2>Description</h2>
17<P><CODE>tg-basic</CODE> tests various methods of texture generation. The following methods are used: <BR>(Texture coordinates) * (2x4 matrix) : Texture conversion<BR>(Texture coordinates) * (2x4 matrix) : Texture rotate<BR>(Position Coordinates) * (3x4 matrix) : Texture projection<BR>Texture coordinate generation as a result of lighting (s = red component, t = green component)</P>
18
19<h2>Coverage</h2>
20<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
21  <tr>
22<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD>
23<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD>
24<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD>
25    </tr>
26  <tr>
27<TD width="30%" rowspan="3"><a href="../../../gx/Transform/GXLoadTexMtxImm.html"><CODE>GXLoadTexMtxImm</CODE></a></TD>
28<TD width="25%"><SPAN class="argument">Matrices</SPAN></TD>
29<TD width="45%">appropriate transformation mtx</TD>
30    </tr>
31  <tr>
32<TD width="25%"><SPAN class="argument">Matrix destination.</SPAN></TD>
33<TD width="45%"><CODE>GX_TEXMTX0</CODE></TD>
34    </tr>
35  <tr>
36<TD width="25%"><SPAN class="argument">Types</SPAN></TD>
37<TD width="45%"><CODE>GX_MTX2x4</CODE> or <CODE>GX_MTX3x4</CODE> depending on generation type</TD>
38    </tr>
39  <tr>
40<TD width="30%" rowspan="4"><a href="../../../gx/TexCoordGen/GXSetTexCoordGen.html"><CODE>GXSetTexCoordGen</CODE></a>&nbsp;&nbsp;</TD>
41<TD width="25%"><SPAN class="argument">Destination coordinates.</SPAN></TD>
42<TD width="45%">Always <CODE>GX_TEXCOORD0</CODE></TD>
43    </tr>
44  <tr>
45<TD width="25%"><SPAN class="argument">Generation type.</SPAN></TD>
46<TD width="45%"><CODE>GX_TG_MTX3x4</CODE>, <CODE>GX_TG_MTX2x4</CODE> or <CODE>GX_TG_SRTG</CODE> depending on generation type</TD>
47    </tr>
48  <tr>
49<TD width="25%"><SPAN class="argument">Generation source.</SPAN></TD>
50<TD width="45%"><CODE>GX_TG_TEX0</CODE>, <CODE>GX_TG_POS</CODE>, <CODE>GX_TG_COLOR0</CODE></TD>
51    </tr>
52  <tr>
53<TD width="25%"><SPAN class="argument">Matrix source.</SPAN></TD>
54<TD width="45%"><CODE>GX_TEXMTX0</CODE></TD>
55    </tr>
56</TABLE>
57
58<h2>Using the Demo</h2>
59<P>START exits the test.</P>
60<P>The B Button turns the texture on and off.</P>
61<P>The A Button changes the texture generation method.</P>
62
63<h2>Snapshot</h2>
64<P>Texture translation.</P>
65<P><IMG src="./images/tg-basic-1.jpg" alt="tg-basic-1.jpg (7368 bytes)" WIDTH="320" HEIGHT="240"></p>
66
67<P>Texture rotation.</P>
68<P><IMG src="./images/tg-basic-2.jpg" alt="tg-basic-2.jpg (7338 bytes)" WIDTH="320" HEIGHT="240"></p>
69
70<P>Texture projection.</P>
71<P><IMG src="./images/tg-basic-3.jpg" alt="tg-basic-3.jpg (6072 bytes)" WIDTH="320" HEIGHT="240"></p>
72
73<p>Texture coordinate generation from the result of lighting calculations.</p>
74<P><IMG src="./images/tg-basic-4.jpg" alt="tg-basic-4.jpg (5505 bytes)" WIDTH="320" HEIGHT="240"></p>
75
76<h2>Data Files Required</h2>
77<p><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTextrs.tpl</CODE></p>
78
79<H2>Revision History</H2>
80<P>
812006/03/01 Initial version.<br>
82</P>
83
84<hr><p>CONFIDENTIAL</p></body>
85</html>