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