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-project</title>
10</head>
11
12<body>
13
14<h1 align="left">tg-project</h1>
15
16<h2>Description</h2>
17<p>A <CODE>tg-project</CODE> tests every detail of the texture projection. The user can change all parameters in this sample interactively.</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 projection matrix.</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_MTX3x4</CODE></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%"><CODE><font face="Courier New">GX_TEXCOORD0</font>.</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></TD>
47    </tr>
48  <tr>
49<TD width="25%"><SPAN class="argument">Generation source.</SPAN></TD>
50<TD width="45%"><CODE>GX_TG_POS</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>The Menu button exits the test.</p>
60<p>The X Button toggles control mode.</p>
61
62<p>&nbsp;&nbsp;&nbsp; <u><strong>Camera Control</strong></u>
63<ul>
64<li><SPAN>The Main stick moves camera with trackball-style control.</SPAN></li>
65<li><SPAN>The Y Button zooms in the camera.</SPAN></li>
66<li><SPAN>The A Button zooms the camera out.</SPAN></li>
67</ul>
68
69<p>&nbsp;&nbsp;&nbsp; <u><strong>Light Position Control</strong></u>
70<ul>
71<li><SPAN>The Main stick moves light with trackball-style control.</SPAN></li>
72<li><SPAN>The Y Button zooms light in.</SPAN></li>
73<li><SPAN>The A Button zooms light out.</SPAN></li>
74</ul>
75
76<p>&nbsp;&nbsp;&nbsp; <u><strong>Light Parameter Control</strong></u>
77<ul>
78<li><SPAN>The Main stick up scales the light's field of view down.</SPAN></li>
79<li><SPAN>Main stick down scales the light's field of view up.</SPAN></li>
80</ul>
81
82<p>&nbsp;&nbsp;&nbsp; <u><strong>Model Select Control</strong></u>
83<ul>
84<li><SPAN>The B Button changes the model.</SPAN></li>
85</ul>
86
87<p>&nbsp;&nbsp;&nbsp; <u><strong>Texture Select Control</strong></u>
88<ul>
89<li><SPAN>The B Button switches the texture that is projected.</SPAN></li>
90</ul>
91
92<h2>Snapshot</h2>
93<p>Texture projection onto a cube.</p>
94<P><IMG src="./images/tg-project-1.jpg" alt="tg-project-1.jpg (14044 bytes)" WIDTH="320" HEIGHT="233"></p>
95
96<p>Texture projection onto a dodecahedron.</p>
97<P><IMG src="./images/tg-project-2.jpg" alt="tg-project-2.jpg (13732 bytes)" WIDTH="320" HEIGHT="216"></p>
98
99<p>Texture projection onto a cylinder.</p>
100<P><IMG src="./images/tg-project-3.jpg" alt="tg-project-3.jpg (15805 bytes)" WIDTH="320" HEIGHT="276"></p>
101
102<p>Texture is projection onto a sphere.</p>
103<P><IMG src="./images/tg-project-4.jpg" alt="tg-project-4.jpg (15604 bytes)" WIDTH="320" HEIGHT="243"></p>
104
105<p>Texture projection onto an octahedron.</p>
106<P><IMG src="./images/tg-project-5.jpg" alt="tg-project-5.jpg (14721 bytes)" WIDTH="320" HEIGHT="239"></p>
107
108<p>Texture projection onto an icosahedron.</p>
109<P><IMG src="./images/tg-project-6.jpg" alt="tg-project-6.jpg (14609 bytes)" WIDTH="320" HEIGHT="240"></p>
110
111<p>Texture projection onto an torus.</p>
112<P><IMG src="./images/tg-project-7.jpg" alt="tg-project-7.jpg (15483 bytes)" WIDTH="320" HEIGHT="244"></p>
113
114<h2>Data Files Required</h2>
115<p><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tg-01.tpl</CODE></p>
116
117<H2>Revision History</H2>
118<P>
1192006/03/01 Initial version.<br>
120</P>
121
122<hr><p>CONFIDENTIAL</p></body>
123</html>